Advertisement
Khakhan

marks glow part1

Aug 20th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. function(values)
  2. -- 1 = Sidewinders UP. 2 = Marking Targets. 3 = Vulnerable NA
  3. -- 4 = Marked Shot NA. 5 = Focus < 40. 6 = Sidewinders 2 stack
  4. -- 7 = Barrage NA. 8 = Trueshot. 9 = Focus < 90
  5. local sw_glow = false
  6. local mshot_glow = false
  7. local shouldShow = false
  8.  
  9. if values[1] and values[2] and values[4] and values[7] and values[9] then
  10. shouldShow = true
  11. elseif values[1] and values[2] and values[4] and values[5] then
  12. shouldShow = true
  13. elseif values[4] and values[6] and values[7] and (values[8] or values[9] or (values[2] and values[3])) then
  14. shouldShow = true
  15. elseif values[1] and values[4] and values[7] and values[8] and values[9] then
  16. shouldShow = true
  17. end
  18. if shouldShow then
  19. sw_glow = true
  20. WeakAuras.ScanEvents("MarksGlow",sw_glow,mshot_glow)
  21. return true
  22. else
  23. WeakAuras.ScanEvents("MarksGlow",sw_glow,mshot_glow)
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement