# eSpellState
# Description
Enumeration of spell states, used to identify the current state of a spell (such as ready, on cooldown, etc.), value type is number
# How to Use
auto spell = player->GetSpell(eSpellSlot::Q);
if(spell->GetState() == eSpellState::Ready)
{
// Spell can be cast
}
# Properties
| key | value | remarks |
|---|---|---|
| Ready | 0 | Spell ready, can be cast |
| NotLearned | 12 | Spell not learned |
| Surpressed | 8 | Spell suppressed |
| Disabled | 16 | Spell disabled |
| Cooldown | 32 | Spell on cooldown |
| Disabled2 | 48 | Spell disabled (another state) |
| NoMana | 64 | Not enough mana |
| Unknown | 10 | Unknown state |