mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
feat: display spell school in spellbook tooltip
Load SchoolMask (TBC/WotLK bitmask) or SchoolEnum (Classic/Turtle 0-6 enum, converted to mask via 1<<N) from Spell.dbc into SpellInfo. renderSpellTooltip now shows the spell school name (Holy/Fire/Nature/ Frost/Shadow/Arcane) in the appropriate school color between the spell rank and resource cost. Physical school is suppressed as it is the implied default. Multi-school spells display both names separated by /. WotLK DBC fallback path uses field 225 for SchoolMask.
This commit is contained in:
parent
458a95ae8e
commit
bae3477c94
2 changed files with 48 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ struct SpellInfo {
|
|||
uint32_t manaCost = 0; // Mana cost
|
||||
uint32_t powerType = 0; // 0=mana, 1=rage, 2=focus, 3=energy
|
||||
uint32_t rangeIndex = 0; // Range index from SpellRange.dbc
|
||||
uint32_t schoolMask = 0; // School bitmask (1=phys,2=holy,4=fire,8=nature,16=frost,32=shadow,64=arcane)
|
||||
bool isPassive() const { return (attributes & 0x40) != 0; }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue