WoW:API HasPetSpells: Difference between revisions
Jump to navigation
Jump to search
(Fixed to be more clear) |
m (Move page script moved page API HasPetSpells to API HasPetSpells without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}}__NOTOC__ | ||
Returns | Returns how many spells/skills your pet has available. | ||
hasPetSpells, petToken = HasPetSpells(); | hasPetSpells, petToken = HasPetSpells(); | ||
Line 11: | Line 11: | ||
=== Returns === | === Returns === | ||
:; numSpells : | :; 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". | :; petToken : String - Pet type, can be "DEMON" or "PET". | ||
== Description == | |||
Returns how many skills the pet has available | 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. |
Latest revision as of 04:46, 15 August 2023
← 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.