Fix spell cast audio to use correct magic school from Spell.dbc

Previously all player spell casts played ARCANE school sounds regardless
of the actual spell school. Now loadSpellNameCache() reads SchoolMask
(bitmask, TBC/WotLK) or SchoolEnum (Vanilla/Classic) from Spell.dbc and
stores it in SpellNameEntry. handleSpellStart/handleSpellGo look up the
spell's school and select the correct MagicSchool for cast sounds.

DBC field indices: WotLK SchoolMask=225 (verified), TBC=215, Classic/Turtle
SchoolEnum=1 (Vanilla enum 0-6 converted to bitmask).
This commit is contained in:
Kelsi 2026-03-09 19:24:09 -07:00
parent 3eded6772d
commit d4ea416dd6
6 changed files with 50 additions and 10 deletions

View file

@ -1,7 +1,7 @@
{
"Spell": {
"ID": 0, "Attributes": 5, "IconID": 117,
"Name": 120, "Tooltip": 147, "Rank": 129
"Name": 120, "Tooltip": 147, "Rank": 129, "SchoolEnum": 1
},
"ItemDisplayInfo": {
"ID": 0, "LeftModel": 1, "LeftModelTexture": 3,