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.24 KB | None | 0 0
  1. function()
  2.  
  3. local soakers = 3 -- needed soakers
  4. local debuff = "Brand of Argus"
  5. local plague = "Carrion Plague"
  6. local status = ""
  7. local size = GetNumGroupMembers()
  8. local count = 0
  9.  
  10.  
  11. -- soakers are assigned
  12. while size > 2 do
  13. if soakers > 0 then
  14. if not UnitDebuff("raid"..size,debuff) then
  15. if not UnitDebuff("raid"..size,plague) then
  16. soakers = soakers - 1
  17. if UnitName("raid"..size) == UnitName("player") then
  18. status = "SOAK"
  19. end
  20. end
  21. end
  22. end
  23. size = size - 1
  24. end
  25.  
  26. local size = GetNumGroupMembers()
  27. -- debuffed targets are ordered
  28. for i=1,size do
  29. if UnitDebuff("raid"..i,debuff) then
  30. count = count + 1
  31. if UnitName("raid"..i) == UnitName("player") then
  32. if count == 1 then
  33. status = "FIRST"
  34. elseif count == 2 then
  35. status = "SECOND"
  36. elseif count == 3 then
  37. status = "THIRD"
  38. end
  39. end
  40. end
  41. end
  42.  
  43.  
  44. return status
  45.  
  46.  
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement