From c70b0751d12e6a8c90e30401a6e1ac52a8b701ee Mon Sep 17 00:00:00 2001 From: Simpy Date: Sat, 11 Jan 2025 19:25:35 -0500 Subject: [PATCH] fix the custom class colors. we dont want to swap the colors when we are on a specific class --- ElvUI/Core/General/API.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/ElvUI/Core/General/API.lua b/ElvUI/Core/General/API.lua index d7bf52d6dd..f33dd3d42e 100644 --- a/ElvUI/Core/General/API.lua +++ b/ElvUI/Core/General/API.lua @@ -553,16 +553,12 @@ do local colors, changed = E.db.general.classColors for classTag, db in next, colors do - local color = custom[classTag] - if color then - E:UpdateClassColor(db) + local color, r, g, b = custom[classTag], db.r, db.g, db.b + if color and (color.r ~= r or color.g ~= g or color.b ~= b) then + color.r, color.g, color.b = r, g, b + color.colorStr = E:RGBToHex(r, g, b, 'ff') - if color.r ~= db.r or color.g ~= db.g or color.b ~= db.b then - color.r, color.g, color.b = db.r, db.g, db.b - color.colorStr = E:RGBToHex(db.r, db.g, db.b, 'ff') - - changed = true - end + changed = true end end