From 3394f51e0e59290c38d2aa649a142606e667751e Mon Sep 17 00:00:00 2001 From: flyinbed Date: Thu, 7 Dec 2023 01:46:58 +0800 Subject: [PATCH] target-debufftimer: move debuff stacks move debuff stacks and show debuff type colors --- mods/target-debufftimer.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/mods/target-debufftimer.lua b/mods/target-debufftimer.lua index 43e0c8d..6b67155 100644 --- a/mods/target-debufftimer.lua +++ b/mods/target-debufftimer.lua @@ -59,6 +59,26 @@ module.enable = function(self) button.cd:SetAlpha(.8) end + local dCount = _G["TargetFrameDebuff" .. i .. "Count"] + if button and dCount then + if not dCount.fixup then + dCount.fixup = true + dCount:SetPoint("BOTTOMRIGHT", "TargetFrameDebuff" .. i, "BOTTOMRIGHT", 6, -3) + end + if stacks and stacks > 1 then + dCount:SetText("|c0000ff3b" .. stacks) + dCount:Show() + else + dCount:Hide() + end + end + + local dBorder = _G["TargetFrameDebuff" .. i .. "Border"] + if button and dBorder then + local color = dtype and DebuffTypeColor[dtype] or DebuffTypeColor["none"] + dBorder:SetVertexColor(color.r, color.g, color.b) + end + if button and effect and duration and timeleft then local start = GetTime() + timeleft - duration CooldownFrame_SetTimer(button.cd, start, duration, 1)