Skip to content

Commit daa8bb8

Browse files
committed
Fixes #8182: Enemy crit chance is nil when enemy skill is DoT
1 parent 3955bd2 commit daa8bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modules/CalcDefence.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -3303,7 +3303,7 @@ function calcs.buildDefenceEstimations(env, actor)
33033303
}
33043304
end
33053305
end
3306-
local enemyCritAilmentEffect = 1 + output.EnemyCritChance / 100 * 0.5 * (1 - output.CritExtraDamageReduction / 100)
3306+
local enemyCritAilmentEffect = 1 + (output.EnemyCritChance or 0) / 100 * 0.5 * (1 - output.CritExtraDamageReduction / 100)
33073307
-- this is just used so that ailments don't always showup if the enemy has no other way of applying the ailment and they have a low crit chance
33083308
local enemyCritThreshold = 10.1
33093309
local enemyBleedChance = 0

0 commit comments

Comments
 (0)