Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local spellName = "Legacy of the Emperor"
- local index = 1
- local soakers = {"Snaggleblop", "Newguylt", "cvhvgh", "Anthem", "Mcpet", "Shiennar", "Layline", "Schuggie", "Andylok"}
- local validSoakers = {}
- for i=1,GetNumGroupMembers() do
- local raider="raid"..i
- local name = UnitName(raider)
- local count = 0
- if UnitBuff(raider, spellName) then
- for _,soakerName in pairs(soakers) do
- if count <= 1 then
- if not UnitBuff(soakerName, spellName) then
- if count == 0 then
- firstSoaker = soakers[index]
- count = count + 1
- index = index + 1
- else if count == 1 then
- secondSoaker = soakers[index]
- count = count + 1
- index = index + 1
- end
- end
- else
- index = index + 1
- print(index)
- end
- end
- end
- end
- print(firstSoaker .. " - " .. secondSoaker)
- --SendAddonMessage("WA_GAZE_TARGETS", firstSoaker .. " - " .. secondSoaker, "WHISPER", name)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement