From 1d6b9c6aeb23f9c4d4deefec14bc1c870498551a Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 2 Jul 2022 13:49:13 +0200 Subject: [PATCH] nameplates: make use of old debuff timer option --- modules/nameplates.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 3284236b..3cf122e4 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -23,6 +23,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () local parentcount = 0 local platecount = 0 local registry = {} + local debuffdurations = C.appearance.cd.debuffs == "1" and true or nil -- cache default border color local er, eg, eb, ea = GetStringColor(pfUI_config.appearance.border.color) @@ -635,7 +636,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () plate.debuffs[index].stacks:Hide() end - if duration and timeleft then + if duration and timeleft and debuffdurations then plate.debuffs[index].cd:SetAlpha(0) plate.debuffs[index].cd:Show() CooldownFrame_SetTimer(plate.debuffs[index].cd, GetTime() + timeleft - duration, duration, 1)