From 7289f6c06fb04ba18f10d90f7b937804bd42560d Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 20 May 2020 02:59:21 +0200 Subject: [PATCH] tooltip: calculate percentage for real hp units --- modules/tooltip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tooltip.lua b/modules/tooltip.lua index ef69aa54..fb2a1290 100644 --- a/modules/tooltip.lua +++ b/modules/tooltip.lua @@ -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)