WoW API: IsSpellKnown

WoW API < IsSpellKnown

isKnown = IsSpellKnown(spellID, isPetSpell)

ArgumentsEdit

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

ReturnsEdit

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