pet: fix powerbar values

This commit is contained in:
shagu
2016-11-24 00:17:41 +01:00
parent 0d24db8b3f
commit 9fb160443e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ pfUI:RegisterModule("pet", function ()
if powerDisplay < powerReal then
pfUI.uf.pet.power.bar:SetValue(powerDisplay + ceil(powerDiff / pfUI_config.unitframes.animation_speed))
elseif hpDisplay > hpReal then
elseif powerDisplay > powerReal then
pfUI.uf.pet.power.bar:SetValue(powerDisplay - ceil(powerDiff / pfUI_config.unitframes.animation_speed))
end
end)
+1
View File
@@ -45,6 +45,7 @@ pfUI:RegisterModule("target", function ()
pfUI.uf.target:RegisterEvent("UNIT_MAXRAGE")
pfUI.uf.target:RegisterEvent("UNIT_ENERGY")
pfUI.uf.target:RegisterEvent("UNIT_MAXENERGY")
pfUI.uf.target:RegisterEvent("UNIT_FOCUS")
pfUI.uf.target:SetScript("OnEvent", function()
if UnitExists("target") then