mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
nameplates: add support for mobhealth and mobinfo
This commit is contained in:
@@ -548,6 +548,9 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
if C.nameplates.showhp == "1" and healthbar.hptext then
|
||||
local min, max = healthbar:GetMinMaxValues()
|
||||
local cur = healthbar:GetValue()
|
||||
if (MobHealth3 or MobHealthFrame) and unitname == UnitName('target') and healthbar:GetAlpha() == 1 and MobHealth_GetTargetCurHP() then
|
||||
cur, max = MobHealth_GetTargetCurHP(), MobHealth_GetTargetMaxHP()
|
||||
end
|
||||
healthbar.hptext:SetText(cur .. " / " .. max)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user