Skip to content

Commit 7984c8f

Browse files
authored
Fix gain on with no chance to mitigate damage (100% suppress chance) (#8121)
1 parent 0695c1b commit 7984c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modules/CalcDefence.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2566,7 +2566,7 @@ function calcs.buildDefenceEstimations(env, actor)
25662566
end
25672567
averageAvoidChance = averageAvoidChance / 5
25682568
output["ConfiguredDamageChance"] = 100 * (blockEffect * suppressionEffect * (1 - averageAvoidChance / 100))
2569-
output["NumberOfMitigatedDamagingHits"] = (output["ConfiguredDamageChance"] ~= 100 or DamageIn["TrackPoolLoss"] or DamageIn["TrackLifeLossOverTime"]) and numberOfHitsToDie(DamageIn) or output["NumberOfDamagingHits"]
2569+
output["NumberOfMitigatedDamagingHits"] = (output["ConfiguredDamageChance"] ~= 100 or DamageIn["TrackPoolLoss"] or DamageIn["TrackLifeLossOverTime"] or DamageIn.GainWhenHit) and numberOfHitsToDie(DamageIn) or output["NumberOfDamagingHits"]
25702570
if breakdown then
25712571
breakdown["ConfiguredDamageChance"] = {
25722572
s_format("%.2f ^8(chance for block to fail)", 1 - BlockChance)

0 commit comments

Comments
 (0)