Advertisement
Khakhan

fixed? scanevents

Aug 23rd, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.27 KB | None | 0 0
  1.   -- 1 = Sidewinders UP. 2 = Marking Targets. 3 = Vulnerable NA
  2.     -- 4 = Marked Shot NA. 5 = Focus < 40. 6 = Sidewinders 2 stack
  3.     -- 7 = Barrage NA. 8 = Trueshot. 9 = Focus < 90
  4.  
  5. -- First aura
  6. function(values)
  7.     local return_val
  8.  
  9.     if not is_glowing then
  10.         is_glowing = {}
  11.     end
  12.    
  13.     if (values[1] and values[2] and values[4] and values[7] and values[9])
  14.        or (values[1] and values[2] and values[4] and values[5])
  15.        or (values[4] and values[6] and values[7] and (values[8] or values[9] or (values[2] and values[3])))
  16.        or (values[1] and values[4] and values[7] and values[8] and  values[9])
  17.     then
  18.         is_glowing["first_aura"] = true
  19.         return_val = true
  20.     else
  21.         return_val = false
  22.     end
  23.  
  24.     WeakAuras.ScanEvents("my_custom_event", is_glowing)
  25.     return return_val
  26. end
  27.  
  28. -- Second aura
  29. function(values)
  30.     local return_val
  31.  
  32.     if not is_glowing then
  33.         is_glowing = {}
  34.     end
  35.  
  36.     if (values[1] and values[2] and values[3])
  37.        or (values[1] and (values[4] or values[5]))
  38.     then
  39.        is_glowing["second_aura"] = true
  40.        return_val = true
  41.     else
  42.         return_val = false
  43.     end
  44.    
  45.     WeakAuras.ScanEvents("my_custom_event", is_glowing)
  46.     return return_val
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement