Advertisement
Xesevi

Untitled

Aug 15th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
  2.     --print("Percent", WA_STAGGER.percent)
  3.     local color = {
  4.         {r = 0.0, g = 1.0, b = 0.2}, --Light
  5.         {r = 1.0, g = 0.7, b = 0.0}, --Moderate
  6.         {r = 1.0, g = 0.0, b = 0.0} --Heavy
  7.     }
  8.    
  9.     if not UnitDebuff("player", "Light Stagger") or not UnitDebuff("player", "Moderate Stagger") or not UnitDebuff("player", "Heavy Stagger") then
  10.         return color[1].r, color[1].g, color[1].b
  11.     end
  12.    
  13.     if UnitDebuff("player", "Moderate Stagger") then
  14.         color = color[2]; --Moderate
  15.     elseif (UnitDebuff("player","Heavy Stagger") then
  16.             color =color[3]; --Heavy
  17.         else
  18.             color = color[1]; --Light
  19.         end
  20.        
  21.         --print("Color", color.r, color.g, color.b)
  22.         return color.r, color.g, color.b
  23.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement