target: always refresh status bars

This commit is contained in:
shagu
2017-02-26 18:33:46 +01:00
parent 92de8f792f
commit e651e02a0c
+4
View File
@@ -219,6 +219,8 @@ pfUI:RegisterModule("target", function ()
pfUI.uf.target.hp.bar:SetValue(hpDisplay + ceil(hpDiff / pfUI_config.unitframes.animation_speed))
elseif hpDisplay > hpReal then
pfUI.uf.target.hp.bar:SetValue(hpDisplay - ceil(hpDiff / pfUI_config.unitframes.animation_speed))
else
pfUI.uf.target.hp.bar:SetValue(hpReal)
end
local powerDisplay = pfUI.uf.target.power.bar:GetValue()
@@ -229,6 +231,8 @@ pfUI:RegisterModule("target", function ()
pfUI.uf.target.power.bar:SetValue(powerDisplay + ceil(powerDiff / pfUI_config.unitframes.animation_speed))
elseif powerDisplay > powerReal then
pfUI.uf.target.power.bar:SetValue(powerDisplay - ceil(powerDiff / pfUI_config.unitframes.animation_speed))
else
pfUI.uf.target.power.bar:SetValue(powerReal)
end