tooltip: calculate percentage for real hp units

This commit is contained in:
shagu
2020-05-20 02:59:21 +02:00
parent b2831e5b29
commit 7289f6c06f
+1 -1
View File
@@ -152,7 +152,7 @@ pfUI:RegisterModule("tooltip", "vanilla:tbc", function ()
if C.tooltip.alwaysperc == "0" and ( estimated or hpmax > 100 or (round(hpmax/100*hp) ~= hp) ) then
pfUI.tooltipStatusBar.HP:SetText(string.format("%s / %s", Abbreviate(rhp), Abbreviate(rhpmax)))
else
pfUI.tooltipStatusBar.HP:SetText(string.format("%s%%", hp))
pfUI.tooltipStatusBar.HP:SetText(string.format("%s%%", hp/hpmax*100))
end
end)