I'm getting the error code "Integer overflow attempting to store -nan(ind)" from
"function()
local absorb = UnitGetTotalAbsorbs('player')
local percent = math.ceil((UnitHealth('player') + absorb) / UnitHealthMax('player') *100)
if percent > 100 then
return string.format('|cff00ff00%i',percent) .. '%'
else
return string.format('%i',percent) .. '%'
end
end
"
But only when I go through a portal (loading screen)