From e651e02a0c4c3482069ca289a3eceb6b84719b35 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 26 Feb 2017 18:33:46 +0100 Subject: [PATCH] target: always refresh status bars --- modules/target.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/target.lua b/modules/target.lua index cb6268bc..915b6303 100644 --- a/modules/target.lua +++ b/modules/target.lua @@ -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