Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. local spellName = "Legacy of the Emperor"
  2. local index = 1
  3. local soakers = {"Snaggleblop", "Newguylt", "cvhvgh", "Anthem", "Mcpet", "Shiennar", "Layline", "Schuggie", "Andylok"}
  4. local validSoakers = {}
  5.  
  6. for i=1,GetNumGroupMembers() do
  7. local raider="raid"..i
  8. local name = UnitName(raider)
  9. local count = 0
  10.  
  11. if UnitBuff(raider, spellName) then
  12. for _,soakerName in pairs(soakers) do
  13. if count <= 1 then
  14. if not UnitBuff(soakerName, spellName) then
  15.  
  16. if count == 0 then
  17. firstSoaker = soakers[index]
  18. count = count + 1
  19. index = index + 1
  20.  
  21. else if count == 1 then
  22.  
  23. secondSoaker = soakers[index]
  24. count = count + 1
  25. index = index + 1
  26. end
  27. end
  28. else
  29. index = index + 1
  30. print(index)
  31. end
  32. end
  33. end
  34.  
  35. end
  36. print(firstSoaker .. " - " .. secondSoaker)
  37. --SendAddonMessage("WA_GAZE_TARGETS", firstSoaker .. " - " .. secondSoaker, "WHISPER", name)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement