mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
3eded6772d
commit
d4ea416dd6
6 changed files with 50 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue