From 63acbd7ea487c7252106127f0cbee984283ad771 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 21 Oct 2018 16:29:55 +0200 Subject: [PATCH] libdebuff: default to negative value for unknown --- libs/libdebuff.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libdebuff.lua b/libs/libdebuff.lua index c481872e..a75a0844 100644 --- a/libs/libdebuff.lua +++ b/libs/libdebuff.lua @@ -154,7 +154,7 @@ libdebuff:SetScript("OnEvent", function() for i=1, 16 do effect, rank, texture, stacks, dtype, duration, timeleft = libdebuff:UnitDebuff("target", i) - if texture and effect and effect ~= "" and duration then + if texture and effect and effect ~= "" then -- don't overwrite existing timers local unitlevel = UnitLevel("target") or 0 local unit = UnitName("target") @@ -215,7 +215,7 @@ function libdebuff:UnitDebuff(unit, id) local unitname = UnitName(unit) local unitlevel = UnitLevel(unit) local texture, stacks, dtype = UnitDebuff(unit, id) - local duration, timeleft = nil, .001 + local duration, timeleft = nil, -1 local rank = nil -- no backport