C_PetJournal .GetPetCooldownByGUID
Jump to navigation
Jump to search
Returns the cooldown associated with summoning a battle pet companion.
start, duration, isEnabled = C_PetJournal.GetPetCooldownByGUID(GUID)
Arguments
- GUID
- string - GUID of a battle pet in your collection to query the cooldown of.
Returns
- start
- number - the time the cooldown period began, based on GetTime().
- duration
- number - the duration of the cooldown period.
- isEnabled
- number - 1 if the cooldown is not paused.
Details
- If the queried pet is not currently on a cooldown, this function will return
0, 0, 1
.
Patch changes
Patch 5.2.0 (2013-03-05): Added.