mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
unitframes: hide missing health on dead people
This commit is contained in:
+1
-1
@@ -1339,7 +1339,7 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
return unit:GetColor("health") .. ceil(UnitHealth(unitstr) / UnitHealthMax(unitstr) * 100)
|
||||
elseif config == "healthmiss" then
|
||||
local health = ceil(UnitHealth(unitstr) - UnitHealthMax(unitstr))
|
||||
if health == 0 then
|
||||
if health == 0 or UnitIsDead(unitstr) then
|
||||
return ""
|
||||
else
|
||||
return unit:GetColor("health") .. pfUI.api.Abbreviate(health)
|
||||
|
||||
Reference in New Issue
Block a user