Skip to content

Commit e03b4d9

Browse files
committed
Fix an error when showing damage numbers
1 parent a87e622 commit e03b4d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

NameplateSCT.lua

+4-1
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,11 @@ local numDamageEvents = 0
918918
local lastDamageEventTime
919919
local runningAverageDamageEvents = 0
920920
function NameplateSCT:DamageEvent(guid, spellName, amount, overkill, school, crit, spellId, absorbed)
921+
local amount = amount or 0
922+
local absorbed = absorbed or 0
923+
921924
-- Hide small hits based on threshold
922-
if (self.db.global.sizing.hideSmallHitsThreshold > 0 and self.db.global.sizing.hideSmallHitsThreshold > (amount+absorbed)) then
925+
if self.db.global.sizing.hideSmallHitsThreshold > (amount + absorbed) then
923926
return
924927
end
925928

0 commit comments

Comments
 (0)