Returns the cooldown state of a pet ability
See also Pet battles functions.
Signature:
isUsable, currentCooldown = C_PetBattles.GetAbilityState(owner, slotnumber, spellIndex)
Arguments:
owner- The owner of the pet (number)1- The player2- The opponent
slotnumber- The pet slot number (number)spellIndex- The ability slot number (number)
Returns:
isUsable- Whether the ability can be used or not. (boolean)currentCooldown- How much time is left on the cooldown, if any (number)