Hey all,
Need some help creating a function. Pretty much I have a weak aura that triggers when I have rupture up. I want to also display on the rupture how much time I have left until a specific poison runs off. What I can't figure out is how to get the poison time of the target of the rupture, I can only get it of the target of my character (this shown below). Any ideas on how I could do this?
Code:
function(arg1, arg2, arg3, arg4, arg5, arg6, arg7)
local debuffTime = select(7, UnitDebuff("target", "Agonizing Poison")) or GetTime()
local poisonTime = debuffTime - GetTime()
if poisonTime < 0 then poisonTime = 0 end
return string.format("%.1f", poisonTime)
end