From 8160506eaea7382f672f6b8f468f300766ebad3f Mon Sep 17 00:00:00 2001 From: Vollmer Date: Mon, 23 Sep 2024 21:05:51 +0200 Subject: [PATCH] [Bugfix] Health Bar will now properly use smooth animation --- Widgets/Bars/HealthBar.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Widgets/Bars/HealthBar.lua b/Widgets/Bars/HealthBar.lua index 6b4f2fa..23b5e8f 100644 --- a/Widgets/Bars/HealthBar.lua +++ b/Widgets/Bars/HealthBar.lua @@ -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)