From 1365368ecf54ece4c93e7e86f7892aab03760066 Mon Sep 17 00:00:00 2001 From: flyinbed Date: Tue, 27 Feb 2024 00:50:47 +0800 Subject: [PATCH] nameplates: fix deficit mod format error --- modules/nameplates.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index afe2205a..b220fb82 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -640,7 +640,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () elseif setting == "curmaxpercs" and hasdata then plate.health.text:SetText(string.format("%s / %s | %s%%", Abbreviate(rhp), Abbreviate(rhpmax), ceil(hp/hpmax*100))) elseif setting == "deficit" then - plate.health.text:SetText(string.format("-%s" .. (hasdata and "" or "%%"), Abbreviate(rhpmax) - Abbreviate(rhp))) + plate.health.text:SetText(string.format("-%s" .. (hasdata and "" or "%%"), Abbreviate(rhpmax - rhp))) else -- "percent" as fallback plate.health.text:SetText(string.format("%s%%", ceil(hp/hpmax*100))) end