Hi Everyone! This lua code grabs the color from the display color box and when it reaches the warning time it switches to the color in the animation color box. This code has worked for every buff or debuff I've come across so far but when I tried it for Mark of the Thunderlord it wouldn't work and I'm not sure why.???
I started to ask around and was told that Blizzard has this buff as a Unknown instead of Player.
I'm guessing that's the reason why the lua code won't work right. I'm hoping one of you expert computer programmers can help me out here with the lua code to work right and also explain why this buff is acting so different from all the others on WeakAuras. Also I noticed if I check Own Only on the trigger for that buff the display won't even show up on the screen.
function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
-- Set the debuff and threshold time here:
local debuff_name, warning_time = "Mark of the Thunderlord", 4
local _,_,_,_,_,_,expires, etc = UnitAura("PLAYER", debuff_name,
if expires ~= nil then
local time_left = expires - GetTime()
if time_left < warning_time then
return r2, g2, b2, a2
return r1,g1,b1, a1