From 8bcba383adb96e09b057679793fc969789ad4c6c Mon Sep 17 00:00:00 2001 From: Pandemoniumus <32446671+Pandemoniumus@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:08:46 +0300 Subject: [PATCH] Debuff Fix for MoP Classic 5.5.4: DebuffTypeColor was removed by Blizzard Added a fix for missing DebuffTypeColor in MoP Classic 5.5.4. Implement DebuffTypeColor fallback for MoP Classic. It helps to show again debuffs for player's, target's, focus's frames etc... --- ShadowedUnitFrames.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ShadowedUnitFrames.lua b/ShadowedUnitFrames.lua index d0db7dc1b..fb2b4e78c 100644 --- a/ShadowedUnitFrames.lua +++ b/ShadowedUnitFrames.lua @@ -4,6 +4,18 @@ ShadowUF = select(2, ...) local L = ShadowUF.L + +-- Fix for MoP Classic 5.5.4: DebuffTypeColor was removed by Blizzard +if not DebuffTypeColor then + DebuffTypeColor = { + ["Magic"] = {r = 0.2, g = 0.6, b = 1.0}, + ["Curse"] = {r = 0.6, g = 0.0, b = 1.0}, + ["Disease"] = {r = 0.6, g = 0.4, b = 0.0}, + ["Poison"] = {r = 0.0, g = 0.5, b = 0.0}, + ["none"] = {r = 0.8, g = 0.0, b = 0.0}, + } +end + ShadowUF.dbRevision = 1 ShadowUF.playerUnit = "player" ShadowUF.enabledUnits = {} @@ -567,4 +579,4 @@ frame:SetScript("OnEvent", function(self, event, addon) ShadowUF:OnInitialize() self:UnregisterEvent("PLAYER_LOGIN") end -end) \ No newline at end of file +end)