# Remove Charge Used For Unit Ability

Grammar — Clear charges used for charge inCharge on ability inAbil on unit inUnit
FlagsAction

Clears the number of used charges for the specified ability charge link.

# Arguments

  • unit — Unit
  • string<gamelink::Abil> — Ability
  • string<charge> — Charge

Returns — void

void libNtve_gf_UnitAbilityRemoveChargeUsed(
	unit lp_inUnit,
	string lp_inAbil,
	string lp_inCharge,
);

Category: Unit / Charges And Cooldowns

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12696

    }
    else if (auto864A12EB_val == "Alarak") {
        libNtve_gf_UnitAbilityRemoveChargeUsed(libCOMI_gv_cM_GlobalCasterUnit[EventPlayer()], "AlarakStructureOvercharge", "Abil/AlarakStructureOvercharge");
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "Abil/AlarakACSummonDeathfleetTarget");
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12732

        libNtve_gf_PlayerRemoveChargeUsed(EventPlayer(), "Abil/ToxicNestBuild");
        libNtve_gf_UnitAbilityRemoveCooldown(libCOMI_gv_cM_GlobalCasterUnit[EventPlayer()], "AbathurMend", "Abil/AbathurMend");
        libNtve_gf_UnitAbilityRemoveChargeUsed(libCOMI_gv_cM_GlobalCasterUnit[EventPlayer()], "AbathurMend", "Abil/AbathurMend");
    }
    else if (auto864A12EB_val == "Stukov") {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12736

    else if (auto864A12EB_val == "Stukov") {
        libNtve_gf_UnitAbilityRemoveCooldown(libCOMI_gv_cM_GlobalCasterUnit[EventPlayer()], "SIStukovInfestStructure", "Abil/SIStukovInfestStructure");
        libNtve_gf_UnitAbilityRemoveChargeUsed(libCOMI_gv_cM_GlobalCasterUnit[EventPlayer()], "SIStukovInfestStructureUpgraded", "Abil/SIStukovInfestStructureUpgraded");
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "Abil/StukovSummonApocalisk");
        libNtve_gf_PlayerRemoveCooldown(EventPlayer(), "Abil/StukovSummonAleksander");