v0.13.8

C_SpellBook.HasPetSpells

functionimplementedavailable in: camelot

Returns the number of available abilities for the player's combat pet.

signaturewowlua
function C_SpellBook.HasPetSpells(): (number?, string?)

Returns

#nametypedescription
1numPetSpellsnumber?The number of pet abilities available, or nil if you do not have a pet with a spell book.
2petNameTokenstring?Pet type, can be "DEMON" or "PET".

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpellBook system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.