GetCompanionCooldown
Jump to navigation
Jump to search
Returns cooldown information about the companions you have.
startTime, duration, isEnabled = GetCompanionCooldown("type", id)
Arguments
- type
- String (companionType) - Type of the companion being queried ("CRITTER" or "MOUNT")
- id
- Number - The slot id to query (starts at 1).
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 companion has a cooldown.
Patch changes
- Patch 5.2.0 (2013-03-05): C_PetJournal.GetPetCooldownByGUID added to return battle pet companion cooldown information.
- Patch 5.0.4 (2012-08-28): Removed.
- Patch 3.0.2 (2008-10-14): Added.