mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 01:46:03 +00:00
unitframes: only show percentage for mana type
This commit is contained in:
+2
-1
@@ -2179,7 +2179,8 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
return unit:GetColor("power") .. pfUI.api.Abbreviate(power)
|
||||
end
|
||||
elseif config == "powerdyn" then
|
||||
if mp ~= mpmax then
|
||||
-- show percentage when only mana is less than 100%
|
||||
if mp ~= mpmax and UnitPowerType(unitstr) == 0 then
|
||||
return unit:GetColor("power") .. pfUI.api.Abbreviate(mp) .. " - " .. ceil(mp / mpmax * 100) .. "%"
|
||||
else
|
||||
return unit:GetColor("power") .. pfUI.api.Abbreviate(mp)
|
||||
|
||||
Reference in New Issue
Block a user