From b2831e5b291ecd84b52221c3d8a4dfbf069a11c7 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 20 May 2020 02:58:59 +0200 Subject: [PATCH] nameplates: calculate percentage 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 65b07f44..5c754201 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)) + plate.health.text:SetText(string.format("%s%%", hp/hpmax*100)) end else plate.health.text:SetText()