Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. function()
  2.  
  3. local soakers = 3 -- needed soakers
  4. local debuff = "Brand of Argus"
  5. local status = ""
  6. local size = GetNumGroupMembers()
  7. local count = 0
  8.  
  9.  
  10. -- soakers are assigned
  11. while size > 2 do
  12. if soakers > 0 then
  13. if not UnitDebuff("raid"..size,debuff) then
  14. soakers = soakers - 1
  15. if UnitName("raid"..size) == UnitName("player") then
  16. status = "SOAK"
  17. end
  18. end
  19. end
  20. size = size - 1
  21. end
  22.  
  23.  
  24. -- debuffed targets are ordered
  25. for i=1,size do
  26. if UnitDebuff("raid"..i,debuff) then
  27. count = count + 1
  28. if UnitName("raid"..i) == UnitName("player") then
  29. if count == 1 then
  30. status = "FIRST"
  31. elseif count == 2 then
  32. status = "SECOND"
  33. elseif count == 3 then
  34. status = "THIRD"
  35. end
  36. end
  37. end
  38. end
  39.  
  40.  
  41. return status
  42.  
  43.  
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement