mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
pet: fix powerbar values
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user