Hey guys,
i create a weakaura which should trigger when the debuff/buff is about to expire. The Trigger works perfectly. I test this with Spell Reflection is 2 seconds remaining. The problem is to untrigger the aura. I use Custom->Status->CheckOn: Every Frame. Just watch the code:
CUSTOM TRIGGER
Code:
function ()
local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable,
shouldConsolidate, spellId = UnitAura("player", "Spell Reflection")
if expirationTime - GetTime() <= 2 then
return true
end
return false
end
CUSTOM UNTRIGGER
Code:
function ()
local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable,
shouldConsolidate, spellId = UnitAura("player", "Spell Reflection")
if expirationTime - GetTime() <= 0.1 then
return true
end
return false
end
If you have any ideas to fix it would be greatly appreciated