Skip to content

Commit

Permalink
[Bugfix] Fix "defhp:short" tag not being shortened
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Feb 10, 2025
1 parent 7f05782 commit 7e10da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Widgets/Texts/CustomFormats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ end, "Health", "-10000")
W:AddTag("defhp:short", "UNIT_HEALTH UNIT_MAXHEALTH", function(unit)
local deficit = UnitHealth(unit) - UnitHealthMax(unit)
if not deficit or deficit == 0 then return end
return FormatText(deficit)
return FormatText(deficit, nil, false, true)
end, "Health", "-10K")
W:AddTag("perdefhp", "UNIT_HEALTH UNIT_MAXHEALTH", function(unit)
local maxhp = UnitHealthMax(unit)
Expand Down

0 comments on commit 7e10da8

Please sign in to comment.