Skip to content

Commit

Permalink
nameplates: fix deficit mod format error
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinbed authored Feb 26, 2024
1 parent db1cb06 commit 1365368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1365368

Please sign in to comment.