C_Spell .IsSpellUsable
Jump to navigation
Jump to search
![]() ![]() ![]() ![]() |
C_Spell.IsSpellUsable |
![]() |
+ 11.0.2 |
![]() ![]() ![]() ![]() |
C_SpellBook.IsSpellBookItemUsable |
![]() |
+ 11.0.2 |
![]() ![]() |
IsUsableSpell |
![]() ![]() ![]() |
+ 2.0.1, - 11.0.2 |
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
Patch 11.0.0 (2024-07-23): Added, replacement for IsUsableSpell.