Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. function()
  2. function GroupMembers(reversed, forceParty)
  3. local unit = (not forceParty and IsInRaid()) and 'raid' or 'party'
  4. local numGroupMembers = forceParty and GetNumSubgroupMembers() or GetNumGroupMembers()
  5. local i = reversed and numGroupMembers or (unit == 'party' and 0 or 1)
  6. return function()
  7. local ret
  8. if i == 0 and unit == 'party' then
  9. ret = 'player'
  10. elseif i <= numGroupMembers and i > 0 then
  11. ret = unit .. i
  12. end
  13. i = i + (reversed and -1 or 1)
  14. return ret
  15. end
  16. end
  17. print(1)
  18.  
  19. for unit in GroupMembers() do
  20. _, _, _, _, _, _, expires, caster = UnitBuff(unit, "Lifebloom")
  21. if (caster == "player") then
  22. local duration = GetTime() - expires;
  23. if duration <= 3 then print("dong") end
  24. return duration <= 3
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement