Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function SpellAbsorbed(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
- local chk = ...
- local spellId, spellName, spellSchool, aGUID, aName, aFlags, aRaidFlags, aspellId, aspellName, aspellSchool, aAmount
- if type(chk) == "number" then
- -- Spell event
- spellId, spellName, spellSchool, aGUID, aName, aFlags, aRaidFlags, aspellId, aspellName, aspellSchool, aAmount = ...
- -- Exclude Spirit Shift damage
- if aspellId == 184553 then
- return
- end
- if aAmount then
- SpellDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, spellId, spellName, spellSchool, aAmount)
- end
- else
- -- Swing event
- aGUID, aName, aFlags, aRaidFlags, aspellId, aspellName, aspellSchool, aAmount = ...
- -- Exclude Spirit Shift damage
- if aspellId == 184553 then
- return
- end
- if aAmount then
- SwingDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, aAmount)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment