WoW API: GetPetActionCooldown

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetPetActionCooldown to API GetPetActionCooldown without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetPetActionCooldown

Returns cooldown information for the pet action in the specified pet action bar slot.

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)