WoW:API HasPetSpells: Difference between revisions
Jump to navigation
Jump to search
m ({{wowapi}}) |
(Fixed to be more clear) |
||
Line 4: | Line 4: | ||
hasPetSpells, petToken = HasPetSpells(); | hasPetSpells, petToken = HasPetSpells(); | ||
== Parameters == | |||
=== Arguments === | |||
:''none'' | :''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. |
Revision as of 15:16, 9 August 2006
← 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.