Sorry about that. Else is used when falling back and since it wouldn't be overridden setting the flag makes no difference so it should look something like this.
Lua Code:
hooksecurefunc("CompactUnitFrame_UpdateStatusText", function(self)
local statusText = self.statusText
if statusText and statusText:IsShown() then
if self.optionTable.healthText == "losthealth" and tonumber(statusText:GetText() or "") and not statusText.fontOverridden then
statusText.fontOverridden = true
statusText:SetFont("Fonts\\ARIALN.TTF", 16)
statusText:SetTextColor(0.95, 0.2, 0.2)
statusText:SetShadowColor(0, 0, 0, 1)
statusText:SetShadowOffset(1, -1)
else
statusText.fontOverridden = nil
statusText:SetFont("Fonts\\ARIALN.TTF", 16)
statusText:SetTextColor(0.5, 0.5, 0.5)
statusText:SetShadowColor(0, 0, 0, 1)
statusText:SetShadowOffset(1, -1)
end
end
end)