This is my first jass trigger, I've been listening to Nestharus video tutorial and I'd like to have constructive criticism on it.
JASS:
library ResetSingleCooldown
/******************************************************************************
* To reset a cooldown just use:
* call UnitResetSingleCooldown(Unit Targeted, Ability ID)
* unit integer
*******************************************************************************/
function UnitResetSingleCooldown takes unit u, integer a returns nothing
local integer i = GetUnitAbilityLevel(u, a)
if i > 0 then
call UnitRemoveAbility(u, a)
call UnitAddAbility(u, a)
call SetUnitAbilityLevel(u, a, i)
endif
endfunction
endlibrary
Last edited: