Parser: handle spell school swaps for pets
This commit is contained in:
+6
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user