nameplates: round percentages for real hp units

This commit is contained in:
shagu
2020-05-20 03:06:29 +02:00
parent 7289f6c06f
commit fe13f4b1bc
+1 -1
View File
@@ -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()