Fandom

WoWWiki

API HasPetSpells

104,755pages on
this wiki
Add New Page
Talk0 Share
WoW API < HasPetSpells

Returns how many spells/skills your pet has available.

hasPetSpells, petToken = HasPetSpells();

Parameters Edit

Arguments Edit

none

Returns Edit

numSpells 
Number - The number of pet spells/skills. nil if you do not have a pet out.
petToken 
String - Pet type, can be "DEMON" or "PET".

Description Edit

Returns how many spells/skills the pet has available. This is not the number that are on the pet bar - it is the number of spells/skills in the pet's spellbook.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.