From 0c0a9a02e13744e5ee9ec37519dcce2b26111314 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 20 May 2020 03:07:00 +0200 Subject: [PATCH] tooltip: round percentages 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 fb2a1290..8e7e84eb 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/hpmax*100)) + pfUI.tooltipStatusBar.HP:SetText(string.format("%s%%", ceil(hp/hpmax*100))) end end)