Skip to content

Commit

Permalink
[Bugfix] Fix Death Color sticking around
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 16, 2024
1 parent 6f37faa commit 1e0b6b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Widgets/Bars/HealthBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ local function UpdateUnitHealthState(button)
button.states.hasSoulstone = nil
--I.UpdateStatusIcon(self)
end
-- Resolve racecase
-- TODO: Revist
U:UnitFrame_UpdateHealthColor(button)
end

button.states.wasDeadOrGhost = button.states.isDeadOrGhost
Expand All @@ -106,7 +103,7 @@ local function UpdateHealth(button)

button.widgets.healthBar:SetValue(button.states.health)

if Cell.vars.useGradientColor or Cell.vars.useFullColor then
if Cell.vars.useGradientColor or Cell.vars.useFullColor or Cell.vars.useDeathColor then
U:UnitFrame_UpdateHealthColor(button)
end

Expand All @@ -129,7 +126,7 @@ local function UpdateHealthMax(button)
button.widgets.healthBar:SetMinMaxValues(0, button.states.healthMax)
end

if Cell.vars.useGradientColor or Cell.vars.useFullColor then
if Cell.vars.useGradientColor or Cell.vars.useFullColor or Cell.vars.useDeathColor then
U:UnitFrame_UpdateHealthColor(button)
end
end
Expand Down

0 comments on commit 1e0b6b4

Please sign in to comment.