mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 07:36:56 +00:00
drop MobHealth3 / MobHealthFrame fallbacks
libhealth ships with pfUI and Nampower's GetUnitField (hard-dep) covers the real-HP read; the MobHealth integration was a chained last-resort fallback that could never actually win, and on the nameplate path it also mixed percentage and real-value scales into the bar's SetMinMaxValues since it overwrote hp/hpmax without hpmin.
This commit is contained in:
@@ -2838,8 +2838,6 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
-- Use libhealth for mob health estimation (overrides Nampower/Standard)
|
||||
if pfUI.libhealth and pfUI.libhealth.enabled then
|
||||
rhp, rhpmax = pfUI.libhealth:GetUnitHealth(unitstr)
|
||||
elseif unit.label == "target" and (MobHealth3 or MobHealthFrame) and MobHealth_GetTargetCurHP() then
|
||||
rhp, rhpmax = MobHealth_GetTargetCurHP(), MobHealth_GetTargetMaxHP()
|
||||
end
|
||||
|
||||
if config == "unit" then
|
||||
|
||||
Reference in New Issue
Block a user