From 20556fc47cf79c1015e952a42aef154e9ea8ad26 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 13 Aug 2020 01:01:52 +0200 Subject: [PATCH] buffwatch: allow to show buffs with zero duration --- modules/buffwatch.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/buffwatch.lua b/modules/buffwatch.lua index cafaeaa2..9268c303 100644 --- a/modules/buffwatch.lua +++ b/modules/buffwatch.lua @@ -230,8 +230,9 @@ pfUI:RegisterModule("buffwatch", "vanilla:tbc", function () -- reinitialize all active buffs for i=1,32 do local timeleft, texture, name, stacks = GetBuffData(frame.unit, i, frame.type) + timeleft = timeleft or 0 - if texture and name and name ~= "" and BuffIsVisible(frame.config, name) and timeleft then + if texture and name and name ~= "" and BuffIsVisible(frame.config, name) then frame.buffs[i][1] = timeleft frame.buffs[i][2] = i frame.buffs[i][3] = name