nameplates: only update on existing debuffs

This commit is contained in:
shagu
2025-03-30 12:07:39 +02:00
parent 151d916474
commit 5f37991bbf
+1 -1
View File
@@ -194,7 +194,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
for id = 1, 16 do
local effect, _, texture, stacks, _, duration, timeleft = libdebuff:UnitDebuff(unitstr, id)
if effect and timeleft then
if effect and timeleft and timeleft > 0 then
local start = GetTime() - ( (duration or 0) - ( timeleft or 0) )
local stop = GetTime() + ( timeleft or 0 )
self.debuffcache[id] = self.debuffcache[id] or {}