From 5112e747de212ad99331bed044fe9747f18bac67 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 27 Oct 2014 14:58:05 +0100 Subject: [PATCH] Don't show negative durations on buffs/debuffs --- oUF_P3lim.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index fca5da6..f245428 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -101,7 +101,7 @@ end local function UpdateAura(self, elapsed) if(self.expiration) then - self.expiration = self.expiration - elapsed + self.expiration = math.max(self.expiration - elapsed, 0) if(self.expiration > 0 and self.expiration < 60) then self.Duration:SetFormattedText('%d', self.expiration) -- 1.7.9.5