From bea2cedc08107719e13bfd7afc567cadf67380f0 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sun, 23 Aug 2026 13:25:06 -0500 Subject: [PATCH] buffwatch: use official dispel-type colours for debuff bars The debuff-bar auto colour read the vanilla DebuffTypeColor global, diverging from unitframes/buff which use C_UnitAuras.GetAuraDispelTypeColor (the BC GlobalColor.dbc palette ClassicAPI ships). Switch buffwatch to the same accessor so all aura displays share one palette; nil/unknown types fall back to DEBUFF_TYPE_NONE instead of the old ad-hoc (1, .2, .2). --- modules/buffwatch.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/buffwatch.lua b/modules/buffwatch.lua index 5e7e2498..f21a09d4 100644 --- a/modules/buffwatch.lua +++ b/modules/buffwatch.lua @@ -296,11 +296,9 @@ pfUI:RegisterModule("buffwatch", function () -- calculate dynamic auto color local r, g, b if frame.type == "HARMFUL" then - r, g, b = 1, .2, .2 - local dtype = data[6] - if dtype and DebuffTypeColor[dtype] then - r,g,b = DebuffTypeColor[dtype].r,DebuffTypeColor[dtype].g,DebuffTypeColor[dtype].b - end + -- official Blizzard dispel-type colors (matches unitframes/buff); + -- nil/unknown type falls back to the DEBUFF_TYPE_NONE colour + r, g, b = C_UnitAuras.GetAuraDispelTypeColor(data[6] or ""):GetRGBA() else r,g,b = str2rgb(data[3]) end