BlzSetUnitAbilityCooldown

Parameters
whichUnit unit

Target unit (handle).

abilId integer

Rawcode of ability.

level integer

Ability level.

cooldown real

New cooldown.

bug

v1.29.2: Crashes when loading a saved game after this function was used on a unit. Probably fixed as of v1.31.1 like with BlzSetUnitAbilityManaCost.

comment

Changes(set) an ability’s cooldown at runtime for a specific unit.

note

Cooldown is a real, which means that it supports negative and positive numbers with decimals, in this case setting it to negative allows you to reduce an ability’s cooldown.

note

It does not reduce the cooldown if the ability is currently on CD, it will have its new cooldown after the CD is over though.

patch

1.29.2.9231

return type
nothing
Source code
native BlzSetUnitAbilityCooldown                   takes unit whichUnit, integer abilId, integer level, real cooldown returns nothing
Source
common.j
wc3modding.com
BlzSetUnitAbilityCooldown