Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
- --print("Percent", WA_STAGGER.percent)
- local color = {
- {r = 0.0, g = 1.0, b = 0.2}, --Light
- {r = 1.0, g = 0.7, b = 0.0}, --Moderate
- {r = 1.0, g = 0.0, b = 0.0} --Heavy
- }
- if not UnitDebuff("player", "Light Stagger") or not UnitDebuff("player", "Moderate Stagger") or not UnitDebuff("player", "Heavy Stagger") then
- return color[1].r, color[1].g, color[1].b
- end
- if UnitDebuff("player", "Moderate Stagger") then
- color = color[2]; --Moderate
- elseif (UnitDebuff("player","Heavy Stagger") then
- color =color[3]; --Heavy
- else
- color = color[1]; --Light
- end
- --print("Color", color.r, color.g, color.b)
- return color.r, color.g, color.b
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement