From 5f37991bbf1f0a9bbf5283a953c8cd6a9daa005a Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 30 Mar 2025 12:07:39 +0200 Subject: [PATCH] nameplates: only update on existing debuffs --- modules/nameplates.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 25944c5b..2e486a7b 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -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 {}