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)