# Reset Ability Cooldowns

Grammar — Reset spendLocation|Location cooldowns on ability abilityCommand|Ability on unit u
FlagsNative | Action

Resets the specified cooldowns on the specified ability on the specified unit.

# Arguments

Returns — void

native void UnitAbilityReset(
	unit inUnit,
	abilcmd inAbilCmd,
	int inLocation,
);

Category: Unit / Charges And Cooldowns

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1460
UnitAbilityReset(EventUnit(), AbilityCommand("InfestedTerrans", 0), c_spendLocationAll)
// L883
UnitAbilityReset(gv_nova, AbilityCommand("NovaSnipe", 0), c_spendLocationAll)
// L885
UnitAbilityReset(gv_nova, AbilityCommand("Domination", 0), c_spendLocationAll)
// L2763
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L2771
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L2779
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L656
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll)
// L657
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll)
// L658
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll)
// L4986
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L5644
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L416
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L417
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L421
UnitAbilityReset(autoD29854AF_var, AbilityCommand("Blink", 0), c_spendLocationAll)
// L317
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L318
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L4980
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L4981
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L1460
UnitAbilityReset(EventUnit(), AbilityCommand("InfestedTerrans", 0), c_spendLocationAll)
// L883
UnitAbilityReset(gv_nova, AbilityCommand("NovaSnipe", 0), c_spendLocationAll)
// L885
UnitAbilityReset(gv_nova, AbilityCommand("Domination", 0), c_spendLocationAll)
// L2763
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L2771
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L2779
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility)
// L656
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll)
// L657
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll)
// L658
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll)
// L4986
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L5644
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll)
// L416
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L417
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L421
UnitAbilityReset(autoD29854AF_var, AbilityCommand("Blink", 0), c_spendLocationAll)
// L317
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L318
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L4980
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll)
// L4981
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll)
// L11683
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L11684
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12016
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12017
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12370
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12371
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12955
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12956
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L11683
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L11684
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12016
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12017
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12370
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12371
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)
// L12955
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll)
// L12956
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L4663
UnitAbilityReset(lp_hero, lp_abilityCommand, c_spendLocationAll)

# mods/heroes.stormmod

MapScript.galaxy

// L8986
UnitAbilityReset(libGame_gv_players[1].lv_heroUnit, AbilityCommand("ZeratulBlinkStorm", 0), c_spendLocationAll)
// L8986
UnitAbilityReset(libGame_gv_players[1].lv_heroUnit, AbilityCommand("ZeratulBlinkStorm", 0), c_spendLocationAll)

# mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod

LibPEB1.galaxy

// L7038
UnitAbilityReset(libPEB1_gv_slivan, AbilityCommand("SlivanBossSlimeSpit", 0), c_spendLocationAll)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L7531
UnitAbilityReset(lv_unit, AbilityCommand("BarbarianLeap", 0), c_spendLocationAll)
// L7603
UnitAbilityReset(lv_eventUnit, AbilityCommand("BarbarianLeap", 0), c_spendLocationAll)
// L19120
UnitAbilityReset(lv_rexxar, AbilityCommand("RexxarMishaFollowCancel", 0), c_spendLocationUnit)
// L20925
UnitAbilityReset(lv_sgtHammerUnit, AbilityCommand("SgtHammerSiegeMode", 0), c_spendLocationAll)

# mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod

LibMSHE.galaxy

// L2090
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("MercPunisherLanerLeap", 0), c_spendLocationAll)

# mods/heroesmapmods/battlegroundmapmods/infernalshrinesdata.stormmod

LibMSHD.galaxy

// L152
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("MercPunisherLanerLeap", 0), c_spendLocationAll)

# mods/heromods/thefirelords.stormmod

LibHMaj.galaxy

// L507
UnitAbilityReset(EventUnitCreatedUnit(), AbilityCommand("RagnarosMoltenCore", 0), c_spendLocationUnit)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L5127
UnitAbilityReset(libCOMI_gv_cM_GlobalCasterUnit[lp_player], AbilityCommand("HHBomberPlatformAreaBombTopBarDummyTimer", 0), c_spendLocationAbility)
// L15744
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("LocustLaunch", 0), c_spendLocationUnit)
// L15785
UnitAbilityReset(lv_unit, AbilityCommand("RavagerAbathurCorrosiveBile", 0), c_spendLocationAll)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L3528
UnitAbilityReset(lp_hero, lp_abilityCommand, c_spendLocationAll)