buffwatch: allow to show buffs with zero duration

This commit is contained in:
shagu
2020-08-13 01:01:52 +02:00
parent 846e7a0aea
commit 20556fc47c
+2 -1
View File
@@ -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