Guest User

Untitled

a guest
Oct 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. function(_,_,message,_,_,source,_,_,destGUID,_,_,_,_,spell,_,amount)
  2. local dot = {
  3. name = "Nether Tempest",
  4. }
  5.  
  6. WA_DOTS = WA_DOTS or {};
  7. if (UnitIsUnit(source or "", "player") and spell == "Nether Tempest") then
  8. WA_DOTS[dot.name] = WA_DOTS[dot.name] or {};
  9. if (message == "SPELL_PERIODIC_DAMAGE") then
  10. WA_DOTS[dot.name][destGUID] = WA_DOTS[dot.name][destGUID] or {};
  11. local record = WA_DOTS[dot.name][destGUID];
  12. record.Amount = amount;
  13. return true;
  14. end
  15. if (message == "SPELL_AURA_REMOVED") then
  16. table.remove(WA_DOTS[dot.name], destGUID);
  17. return false;
  18. end
  19. end
  20. return false;
  21. end
  22.  
  23. function()
  24. local dot = {
  25. name = "Nether Tempest",
  26. }
  27.  
  28. WA_DOTS = WA_DOTS or {};
  29. WA_DOTS[dot.name] = WA_DOTS[dot.name] or {};
  30. local record = WA_DOTS[dot.name][UnitGUID("target")];
  31. if(record) then
  32. return string.format("%i", record.Amount or 0);
  33. else
  34. return "Waiting";
  35. end
  36. end
Add Comment
Please, Sign In to add comment