WoW API: HasPetSpells
← WoW API < HasPetSpells
Returns true if the player has pet spells.
hasPetSpells, petToken = HasPetSpells();
Parameters
Arguments
- none
Returns
- numSpells
- Boolean - Returns the number of pet spells, if you do not have a pet or it's not summoned then nil is returned.
- petToken
- String - Pet type, can be "DEMON" or "PET".
Description
Returns how many skills the pet has available, this is not the number that are on the pet bar but the pet skill book.