WoW API: HasPetSpells

From AddOn Studio
Revision as of 15:16, 9 August 2006 by WoWWiki>Shadowed (Fixed to be more clear)
Jump to navigation Jump to search

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.