Skip to content

Commit

Permalink
[Bugfix] Health Bar will now properly use smooth animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 23, 2024
1 parent 2777202 commit 8160506
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Widgets/Bars/HealthBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ local function UpdateHealth(button)
UpdateUnitHealthState(button)
local healthPercent = button.states.healthPercent

button.widgets.healthBar:SetValue(button.states.health)
if CellDB["appearance"]["barAnimation"] == "Smooth" then
button.widgets.healthBar:SetSmoothedValue(button.states.health)
else
button.widgets.healthBar:SetValue(button.states.health)
end

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

0 comments on commit 8160506

Please sign in to comment.