Skip to content

Commit 7fab10a

Browse files
committed
TT: format again
1 parent b423fce commit 7fab10a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ElvUI/Game/Shared/Modules/Tooltip/Tooltip.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,11 @@ function TT:GameTooltipStatusBar_UpdateUnitHealth(bar)
658658
local tt = bar:GetParent()
659659
local unit = TT:GetUnitToken(tt)
660660
local ok, perc = pcall(UnitHealthPercent, unit, true, ScaleTo100)
661-
bar.Text:SetText(ok and perc or '')
661+
if ok then
662+
bar.Text:SetFormattedText('%d', perc)
663+
else
664+
bar.Text:SetText('')
665+
end
662666
end
663667

664668
function TT:GameTooltipStatusBar_OnValueChanged(bar, current)

0 commit comments

Comments
 (0)