nameplates: fix deficit mod format error

This commit is contained in:
flyinbed
2024-02-26 17:50:47 +01:00
committed by GitHub
parent db1cb06b4e
commit 1365368ecf
+1 -1
View File
@@ -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