mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Extend SpellDataInfo with manaCost and powerType fields, extracted from Spell.dbc ManaCost and PowerType columns. This enables IsUsableSpell() to properly check if the player has enough mana/rage/energy to cast. Previously IsUsableSpell always returned notEnoughMana=false since cost data wasn't available. Now it compares the spell's DBC mana cost against the player's current power, returning accurate usability and mana state. This fixes action bar addons showing abilities as usable when the player lacks sufficient power, and enables OmniCC-style cooldown text to properly dim insufficient-power abilities. |
||
|---|---|---|
| .. | ||
| addons | ||
| audio | ||
| auth | ||
| core | ||
| game | ||
| network | ||
| pipeline | ||
| platform | ||
| rendering | ||
| third_party | ||
| ui | ||