Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_PetJournal.GetPetCooldownByGUID

From Wowpedia
Jump to: navigation, 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 history

Mists of Pandaria Patch 5.2.0 (2013-03-05): Added.