GetPetActionCooldown

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns cooldown info for an action on the pet action bar.

startTime, duration, enable = GetPetActionCooldown(index)

Parameters

Arguments

index
number - The index of the pet action button you want to query for cooldown info.

Returns

startTime
number - The time when the cooldown started (as returned by GetTime()) or zero if no cooldown
duration
number - The number of seconds the cooldown will last, or zero if no cooldown
enable
boolean - 0 if no cooldown, 1 if cooldown is in effect (probably)