Reset an Ability Cooldown

Status
Not open for further replies.
first remove the ability(s) that are not to be reseted.(but put their levels to a variable)
then do the action reset.
after that add the abilities then set their levels to according to variable.

thats it.
 
first remove the ability(s) that are not to be reseted.(but put their levels to a variable)
then do the action reset.
after that add the abilities then set their levels to according to variable.

thats it.

It's easier the other way around.
1) Save the ability level of your ability in a variable.
2) Remove the ability and add it again.
3) Reset the level.

You don't need the Cooldown-Reset-Action.
This also works fine for hero abilities. Only with abilities in a spellbook it could be a bit more complicated.
 
meOme is correct. You don't need to reset the ability cooldown if you add/remove it. Furthermore, if you do reset the ability cooldowns in addition to removing/adding the ability, then all of your abilities are going to be "cooled down".

If you remove/add an ability, the cooldown will be reset. If you disable an ability it will not reset the cooldown, such as using SetPlayerAbilityAvailable.
 
The above discussion relates to old Warcraft versions. However, this thread still comes up in results. The new natives added in version 1.29 make it possible in an easier way.

BlzEndUnitAbilityCooldown and BlzSetUnitAbilityCooldown or in GUI:
cooldown-gui.png
 
Status
Not open for further replies.
Back
Top