nameplates: add support for mobhealth and mobinfo

This commit is contained in:
2018-05-16 01:57:34 +03:00
committed by shagu
parent 7328cf9937
commit 40d19fc606
2 changed files with 29 additions and 52 deletions
+3
View File
@@ -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