player: fix non refreshing healthbar

This commit is contained in:
shagu
2016-10-26 00:25:25 +02:00
parent 96ff9e5917
commit d11a3728ec
+2
View File
@@ -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()