Skip to content

Commit

Permalink
Fixes #8182: Enemy crit chance is nil when enemy skill is DoT
Browse files Browse the repository at this point in the history
  • Loading branch information
Wires77 committed Aug 14, 2024
1 parent 3955bd2 commit daa8bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3303,7 +3303,7 @@ function calcs.buildDefenceEstimations(env, actor)
}
end
end
local enemyCritAilmentEffect = 1 + output.EnemyCritChance / 100 * 0.5 * (1 - output.CritExtraDamageReduction / 100)
local enemyCritAilmentEffect = 1 + (output.EnemyCritChance or 0) / 100 * 0.5 * (1 - output.CritExtraDamageReduction / 100)
-- 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
local enemyCritThreshold = 10.1
local enemyBleedChance = 0
Expand Down

0 comments on commit daa8bb8

Please sign in to comment.