mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 13:00:50 +00:00
pet: always refresh health
This commit is contained in:
@@ -121,6 +121,8 @@ pfUI:RegisterModule("pet", function ()
|
|||||||
pfUI.uf.pet.hp.bar:SetValue(hpDisplay + ceil(hpDiff / pfUI_config.unitframes.animation_speed))
|
pfUI.uf.pet.hp.bar:SetValue(hpDisplay + ceil(hpDiff / pfUI_config.unitframes.animation_speed))
|
||||||
elseif hpDisplay > hpReal then
|
elseif hpDisplay > hpReal then
|
||||||
pfUI.uf.pet.hp.bar:SetValue(hpDisplay - ceil(hpDiff / pfUI_config.unitframes.animation_speed))
|
pfUI.uf.pet.hp.bar:SetValue(hpDisplay - ceil(hpDiff / pfUI_config.unitframes.animation_speed))
|
||||||
|
else
|
||||||
|
pfUI.uf.pet.hp.bar:SetValue(hpReal)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- animation power
|
-- animation power
|
||||||
|
|||||||
Reference in New Issue
Block a user