Function BlzSetUnitAbilityCooldown

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

    Parameters

    • whichUnit: Unit<UnitEventMap>

      Target unit (handle).

    • abilId: number

      Rawcode of ability.

    • level: number

      Ability level.

    • cooldown: number

      New cooldown.

    Returns void

    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

Generated using TypeDoc