Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- function GroupMembers(reversed, forceParty)
- local unit = (not forceParty and IsInRaid()) and 'raid' or 'party'
- local numGroupMembers = forceParty and GetNumSubgroupMembers() or GetNumGroupMembers()
- local i = reversed and numGroupMembers or (unit == 'party' and 0 or 1)
- return function()
- local ret
- if i == 0 and unit == 'party' then
- ret = 'player'
- elseif i <= numGroupMembers and i > 0 then
- ret = unit .. i
- end
- i = i + (reversed and -1 or 1)
- return ret
- end
- end
- print(1)
- for unit in GroupMembers() do
- _, _, _, _, _, _, expires, caster = UnitBuff(unit, "Lifebloom")
- if (caster == "player") then
- local duration = GetTime() - expires;
- if duration <= 3 then print("dong") end
- return duration <= 3
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement