From a2c9ba7239d809305dd7e99fbd1401008b9e2f51 Mon Sep 17 00:00:00 2001 From: farfaraway Date: Tue, 29 Nov 2022 02:46:03 +0800 Subject: [PATCH] fix(unitframe): fix power bar color --- src/modules/unitframe/elements/power.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/unitframe/elements/power.lua b/src/modules/unitframe/elements/power.lua index ad91b782..68631fdb 100644 --- a/src/modules/unitframe/elements/power.lua +++ b/src/modules/unitframe/elements/power.lua @@ -29,8 +29,8 @@ function UNITFRAME:UpdatePowerBarColor(self, force) updatePowerColorByIndex(power, C.DB.Unitframe.HealthColorStyle) if style == 'player' then - power.colorPower = (C.DB.Unitframe.HealthColorStyle == 4 or C.DB.Unitframe.HealthColorStyle == 5) - power.colorClass = (C.DB.Unitframe.HealthColorStyle == 1 or C.DB.Unitframe.HealthColorStyle == 3) + power.colorPower = (C.DB.Unitframe.HealthColorStyle >= 4 or C.DB.Unitframe.HealthColorStyle == 2) + power.colorClass = (C.DB.Unitframe.HealthColorStyle <= 3) end end