From fe13f4b1bc151d17d4214f492dff54619c52e5cc Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 20 May 2020 03:06:29 +0200 Subject: [PATCH] nameplates: round percentages for real hp units --- modules/nameplates.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 5c754201..f4c931eb 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -445,7 +445,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () if C.nameplates.alwaysperc == "0" and ( estimated or hpmax > 100 or (round(hpmax/100*hp) ~= hp) ) then plate.health.text:SetText(string.format("%s / %s", Abbreviate(rhp), Abbreviate(rhpmax))) else - plate.health.text:SetText(string.format("%s%%", hp/hpmax*100)) + plate.health.text:SetText(string.format("%s%%", ceil(hp/hpmax*100))) end else plate.health.text:SetText()