WoW:API HasPetSpells: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:


----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API Functions|HasPetSpells]]
[[Category:API Pet Functions|HasPetSpells]]

Revision as of 12:35, 4 January 2006

HasPetSpells -Documentation by AlexanderYoshi-

Returns true if the player has pet spells.

hasPetSpells, petToken = HasPetSpells();

Arguments
none

Returns
numPetSpells, petToken
numPetSpells
Boolean - nil if the player has no pet spells, otherwise returns the number of pet spells.
petToken
String - The pet token, can be "DEMON" or "PET"

Example
 local hasPetSpells, petToken = HasPetSpells();
Result
true | false, "?"

Description
Returns nil if the player has no pet spells, the number of pet spells otherwise.

Template:WoW API