Parser: handle spell school swaps for pets

This commit is contained in:
andrew6180
2024-05-20 11:43:24 -07:00
parent cd641ac94d
commit bd68720db3
+6 -1
View File
@@ -557,7 +557,8 @@
--melee
if (token == "SWING_DAMAGE") then
spellId, spellName, spellType, amount, overkill, school, resisted, blocked, absorbed, critical, glacing, crushing, isoffhand = 1, meleeString, 00000001, spellId, spellName, spellType, amount, overkill, school, resisted, blocked, absorbed, critical
-- school or 00000001 because pets can have different melee damage types.
spellId, spellName, spellType, amount, overkill, school, resisted, blocked, absorbed, critical, glacing, crushing, isoffhand = 1, meleeString, school or 00000001, spellId, spellName, spellType, amount, overkill, school, resisted, blocked, absorbed, critical
end
if (not targetName) then
@@ -1140,6 +1141,10 @@
end
end
if spellTable.spellschool ~= (spellType or school) then
spellTable.spellschool = spellType or school -- damage change REs can get cached as the wrong school type
end
--empowerment data
if (empower_cache[sourceSerial]) then
local empowerSpellInfo = empower_cache[sourceSerial][spellName]