From e40608f9c0d4364326eed97a27bb4ef1a70435ab Mon Sep 17 00:00:00 2001 From: Programmist Date: Mon, 23 Jun 2025 09:29:11 +0300 Subject: [PATCH] fix #8704 --- src/Modules/CalcDefence.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Modules/CalcDefence.lua b/src/Modules/CalcDefence.lua index 6a4acbc6f7..b0f90fe213 100644 --- a/src/Modules/CalcDefence.lua +++ b/src/Modules/CalcDefence.lua @@ -721,10 +721,8 @@ function calcs.defence(env, actor) end end output.EffectiveAverageBlockChance = (output.EffectiveBlockChance + output.EffectiveProjectileBlockChance + output.EffectiveSpellBlockChance + output.EffectiveSpellProjectileBlockChance) / 4 - output.BlockEffect = m_max(100 - modDB:Sum("BASE", nil, "BlockEffect"), 0) - if output.BlockEffect == 0 or output.BlockEffect == 100 then - output.BlockEffect = 100 - else + output.BlockEffect = 100 - modDB:Sum("BASE", nil, "BlockEffect") + if output.BlockEffect ~= 0 then output.ShowBlockEffect = true output.DamageTakenOnBlock = 100 - output.BlockEffect end