C_Spell.IsSpellUsable

From Warcraft Wiki
Jump to navigation Jump to search

Returns whether the spell is currently castable.

isUsable, insufficientPower = C_Spell.IsSpellUsable(spellIdentifier)

Arguments

spellIdentifier
number|string : SpellIdentifier - Spell ID, name, name(subtext), or link

Returns

isUsable
boolean - True if the spell is usable, false otherwise
insufficientPower
boolean - True if spell is specifically unusable due to insufficient power (i.e. MANA, RAGE, etc)

Details

  • A spell might be unusable for a variety of reasons, such as:
  • The player hasn't learned the spell.
  • The player lacks required mana or reagents.
  • Reactive conditions haven't been met.

Patch changes