Advertisement
Gunba

Untitled

Jul 30th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. for i=1,20 do
  2. if UnitExists('raid' .. i) then
  3. local wname, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = UnitDebuff('raid' .. i, "Wrought Chaos")
  4. local fname, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = UnitDebuff('raid' .. i, "Focused Chaos")
  5. if wname then
  6. if UnitGUID ('player') == UnitGUID('raid' .. i) then
  7. GNB_PBEAMPOS = wbeampos;
  8. GNB_PBEAMDIR = getRelativePos(wbeampos);
  9. end
  10. wbeampos = wbeampos + 1
  11. elseif fname then
  12. if UnitGUID ('player') == UnitGUID('raid' .. i) then
  13. GNB_PBEAMPOS = fbeampos;
  14. GNB_PBEAMDIR = getRelativePos(fbeampos);
  15. end
  16. fbeampos = fbeampos + 1
  17. end
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement