aggixx

Untitled

Jul 1st, 2015
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. local function SpellAbsorbed(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
  2. local chk = ...
  3. local spellId, spellName, spellSchool, aGUID, aName, aFlags, aRaidFlags, aspellId, aspellName, aspellSchool, aAmount
  4.  
  5. if type(chk) == "number" then
  6. -- Spell event
  7. spellId, spellName, spellSchool, aGUID, aName, aFlags, aRaidFlags, aspellId, aspellName, aspellSchool, aAmount = ...
  8.  
  9. -- Exclude Spirit Shift damage
  10. if aspellId == 184553 then
  11. return
  12. end
  13.  
  14. if aAmount then
  15. SpellDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, spellId, spellName, spellSchool, aAmount)
  16. end
  17. else
  18. -- Swing event
  19. aGUID, aName, aFlags, aRaidFlags, aspellId, aspellName, aspellSchool, aAmount = ...
  20.  
  21. -- Exclude Spirit Shift damage
  22. if aspellId == 184553 then
  23. return
  24. end
  25.  
  26. if aAmount then
  27. SwingDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, aAmount)
  28. end
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment