WoW API: IsSpellKnown

From AddOn Studio
Revision as of 00:46, 8 June 2010 by WoWWiki>Armord (Created page with '{{wowapi}} isKnown = IsSpellKnown(spellID, isPetSpell) == Arguments == :;spellID : integer - the spell ID number :;isPetSpell : boolean (optional) - if true, will check if th…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < IsSpellKnown

isKnown = IsSpellKnown(spellID, isPetSpell)

Arguments

spellID
integer - the spell ID number
isPetSpell
boolean (optional) - if true, will check if the currently active pet knows the spell; if false or omitted, will check if the player knows the spell

Returns

isKnown
boolean - whether the player (or pet) knows the given spell