Hello,
Look this code:
In you case (for spell http://wod.wowhead.com/spell=1079 (id:1079)), to check in your target if remaining time has less than 7 secondes add this lua condition:
LuaScript:
local name = GetSpellInfo(1079);
_, _, _, _, _, _, expirationTime = UnitDebuff("target", name);
timeRemaining = expirationTime - GetTime();
if (timeRemaining <= 7) then retV = "1"; else retV = "0"; end
Research:
1
Var:
result