WoW API: HasPetSpells

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API HasPetSpells to API HasPetSpells without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < HasPetSpells

Returns how many spells/skills your pet has available.

hasPetSpells, petToken = HasPetSpells();

Parameters

Arguments

none

Returns

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

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.