File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -699,11 +699,11 @@ function calcs.defence(env, actor)
699699 " Total: " .. output .SpellBlockChance + output .SpellBlockChanceOverCap .. " %" ,
700700 }
701701 end
702- if modDB :Flag (nil , " CannotBlockAttacks" ) or enemyDB : Flag ( nil , " CannotBeBlocked " ) then
702+ if modDB :Flag (nil , " CannotBlockAttacks" ) then
703703 output .BlockChance = 0
704704 output .ProjectileBlockChance = 0
705705 end
706- if modDB :Flag (nil , " CannotBlockSpells" ) or enemyDB : Flag ( nil , " CannotBeBlocked " ) then
706+ if modDB :Flag (nil , " CannotBlockSpells" ) then
707707 output .SpellBlockChance = 0
708708 output .SpellProjectileBlockChance = 0
709709 end
@@ -2623,13 +2623,15 @@ function calcs.buildDefenceEstimations(env, actor)
26232623 output [" NumberOfDamagingHits" ] = numberOfHitsToDie (DamageIn )
26242624 end
26252625
2626-
26272626 do
26282627 local DamageIn = { }
26292628 local BlockChance = output .EffectiveBlockChance / 100
26302629 if damageCategoryConfig ~= " Melee" and damageCategoryConfig ~= " Untyped" then
26312630 BlockChance = output [" Effective" .. damageCategoryConfig .. " BlockChance" ] / 100
26322631 end
2632+ if enemyDB :Flag (nil , " CannotBeBlocked" ) then
2633+ BlockChance = 0
2634+ end
26332635 local blockEffect = (1 - BlockChance * output .BlockEffect / 100 )
26342636 local suppressChance = 0
26352637 local suppressionEffect = 1
You can’t perform that action at this time.
0 commit comments