# Remove Cooldown For Unit

Grammar — Clear remaining time on cooldown inCooldown on unit inUnit
FlagsAction

Clears the specified unit cooldown link.

# Arguments

  • unit — Unit
  • string<cooldown> — Cooldown

Returns — void

void libNtve_gf_UnitRemoveCooldown(
	unit lp_inUnit,
	string lp_inCooldown,
);

Category: Unit / Charges And Cooldowns

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:24970

    if ((EventUnitBehaviorChange() == c_unitBehaviorChangeActivate)) {
        lv_heroIndex = libCore_gf_GetHeroIndexForUnitType(UnitGetType(lv_hero));
        libNtve_gf_UnitRemoveCooldown(EventUnit(), "Abil/UtherHolyShock");
        lv_i = 1;
        for ( ; ( (auto5E5F8669_ai >= 0 && lv_i <= auto5E5F8669_ae) || (auto5E5F8669_ai < 0 && lv_i >= auto5E5F8669_ae) ) ; lv_i += auto5E5F8669_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:24977

                if ((lv_abilLink != "UtherDivineStorm") && (lv_abilLink != "UtherDivineIntervention")) {
                    lv_cooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Cooldown.Link", UnitGetOwner(lv_hero));
                    libNtve_gf_UnitRemoveCooldown(lv_hero, lv_cooldownLink);
                }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:8110

            if ((libGame_gf_HeroAbilityCooldownCanBeReset(lv_heroIndex, lv_abilLink) == true)) {
                lv_cooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Cooldown.Link", UnitGetOwner(lv_itUnit));
                libNtve_gf_UnitRemoveCooldown(lv_itUnit, lv_cooldownLink);
                libNtve_gf_PlayerRemoveCooldown(lp_player, lv_cooldownLink);
                lv_chargeLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Charge.Link", UnitGetOwner(lv_itUnit));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:8129

                lv_abilLink = UnitAbilityGet(lv_vehicleUnit, lv_itAbility);
                lv_cooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Cooldown.Link", lp_player);
                libNtve_gf_UnitRemoveCooldown(lv_vehicleUnit, lv_cooldownLink);
                libNtve_gf_PlayerRemoveCooldown(lp_player, lv_cooldownLink);
            }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:1651

        if ((lv_abilLink != "") && (lv_abilLink != null) && ((AbilityClass(lv_abilLink) == c_classIdCAbilAugment) || (AbilityClass(lv_abilLink) == c_classIdCAbilBehavior) || (AbilityClass(lv_abilLink) == c_classIdCAbilEffectInstant) || (AbilityClass(lv_abilLink) == c_classIdCAbilEffectTarget) || (AbilityClass(lv_abilLink) == c_classIdCAbilMorph))) {
            lv_cooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Cooldown.Link", lv_ownerofUnit);
            libNtve_gf_UnitRemoveCooldown(lp_unit, lv_cooldownLink);
            libNtve_gf_PlayerRemoveCooldown(lv_ownerofUnit, lv_cooldownLink);
            lv_chargeLink = CatalogFieldValueGet(c_gameCatalogAbil, lv_abilLink, "Cost[" + IntToString(0) + "].Charge.Link", lv_ownerofUnit);

mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmodbase.stormdata/LibMTOD.galaxy:3149

        libGame_gf_ApplyMountBehaviorToHero(lv_hero);
        lv_mountCooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, "Mount", "Cost[" + IntToString(0) + "].Cooldown.Link", lv_player);
        libNtve_gf_UnitRemoveCooldown(lv_hero, lv_mountCooldownLink);
        libNtve_gf_PlayerRemoveCooldown(lv_player, lv_mountCooldownLink);
    }

mods/heromods/samuro.stormmodbase.stormdata/LibHSAM.galaxy:1433

        if ((lv_itUnit != EventUnit())) {
            lv_criticalStrikeCooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, "SamuroCriticalStrike", "Cost[" + IntToString(0) + "].Cooldown.Link", lv_samuroPlayer);
            libNtve_gf_UnitRemoveCooldown(lv_itUnit, lv_criticalStrikeCooldownLink);
            UnitIssueOrder(lv_itUnit, Order(AbilityCommand("SamuroCriticalStrike", 0)), c_orderQueueReplace);
        }

mods/heromods/samuro.stormmodbase.stormdata/LibHSAM.galaxy:1479

            if (lv_itUnit == null) { break; }
            lv_bladestormCooldownLink = CatalogFieldValueGet(c_gameCatalogAbil, "SamuroBladestorm", "Cost[" + IntToString(0) + "].Cooldown.Link", lv_samuroPlayer);
            libNtve_gf_UnitRemoveCooldown(lv_itUnit, lv_bladestormCooldownLink);
            UnitIssueOrder(lv_itUnit, Order(AbilityCommand("SamuroBladestorm", 0)), c_orderQueueReplace);
        }

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

    }
    else if (auto864A12EB_val == "Artanis") {
        libNtve_gf_UnitRemoveCooldown(libCOMI_gv_cM_GlobalCasterUnit[EventPlayer()], "SOACaster");
        libNtve_gf_UnitAbilityRemoveCooldown(libCOMI_gv_cM_GlobalCasterUnit[EventPlayer()], "SoASuperShield", "Abil/SoASuperShield");
        libNtve_gf_UnitAbilityRemoveCooldown(libCOMI_gv_cM_GlobalCasterUnit[EventPlayer()], "SOAOrbitalStrikeActivate", "Abil/SOAOrbitalStrikeActivate");