v0.13.8

GetPetActionCooldown

functionimplementedavailable in: camelot

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

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
indexnumberThe index of the pet action button you want to query for cooldown info.

Returns

#nametypedescription
1startTimenumberThe time when the cooldown started (as returned by GetTime()) or zero if no cooldown
2durationnumberThe number of seconds the cooldown will last, or zero if no cooldown
3enablenumber0 if no cooldown, 1 if cooldown is in effect (probably)

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.