Skip to content

Commit

Permalink
fix(unitframe): fix power bar color
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Nov 28, 2022
1 parent 54a9470 commit a2c9ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/unitframe/elements/power.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a2c9ba7

Please sign in to comment.