Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- local soakers = 3 -- needed soakers
- local debuff = "Brand of Argus"
- local status = ""
- local size = GetNumGroupMembers()
- local count = 0
- -- soakers are assigned
- while size > 2 do
- if soakers > 0 then
- if not UnitDebuff("raid"..size,debuff) then
- soakers = soakers - 1
- if UnitName("raid"..size) == UnitName("player") then
- status = "SOAK"
- end
- end
- end
- size = size - 1
- end
- -- debuffed targets are ordered
- for i=1,size do
- if UnitDebuff("raid"..i,debuff) then
- count = count + 1
- if UnitName("raid"..i) == UnitName("player") then
- if count == 1 then
- status = "FIRST"
- elseif count == 2 then
- status = "SECOND"
- elseif count == 3 then
- status = "THIRD"
- end
- end
- end
- end
- return status
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement