mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
unitframes: use mobhealth data on dynamic strings
This commit is contained in:
@@ -1397,6 +1397,10 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
end
|
||||
return unit:GetColor("health") .. pfUI.api.Abbreviate(UnitHealth(unitstr)) .. " - " .. ceil(UnitHealth(unitstr) / UnitHealthMax(unitstr) * 100) .. "%"
|
||||
else
|
||||
if unit.label == "target" and MobHealth3 then
|
||||
local hp, hpmax = MobHealth3:GetUnitHealth(unit.label)
|
||||
return unit:GetColor("health") .. pfUI.api.Abbreviate(hp)
|
||||
end
|
||||
return unit:GetColor("health") .. pfUI.api.Abbreviate(UnitHealth(unitstr))
|
||||
end
|
||||
elseif config == "healthminmax" then
|
||||
|
||||
Reference in New Issue
Block a user