From d11a3728ec83e68ce80c914783be40d3718fc4b2 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 26 Oct 2016 00:25:25 +0200 Subject: [PATCH] player: fix non refreshing healthbar --- modules/player.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/player.lua b/modules/player.lua index 89e51791..d843069b 100644 --- a/modules/player.lua +++ b/modules/player.lua @@ -141,6 +141,8 @@ pfUI:RegisterModule("player", function () pfUI.uf.player.hp.bar:SetValue(hpDisplay + ceil(hpDiff / pfUI_config.unitframes.animation_speed)) elseif hpDisplay > hpReal then pfUI.uf.player.hp.bar:SetValue(hpDisplay - ceil(hpDiff / pfUI_config.unitframes.animation_speed)) + elseif hpDisplay ~= hpReal then + pfUI.uf.player.hp.bar:SetValue(hpReal) end local powerDisplay = pfUI.uf.player.power.bar:GetValue()