Skip to content

Commit a871a88

Browse files
authored
Fixed EHP based on block effect calculation (#8711)
1 parent f4c10fa commit a871a88

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Modules/CalcDefence.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,8 @@ function calcs.defence(env, actor)
721721
end
722722
end
723723
output.EffectiveAverageBlockChance = (output.EffectiveBlockChance + output.EffectiveProjectileBlockChance + output.EffectiveSpellBlockChance + output.EffectiveSpellProjectileBlockChance) / 4
724-
output.BlockEffect = m_max(100 - modDB:Sum("BASE", nil, "BlockEffect"), 0)
725-
if output.BlockEffect == 0 or output.BlockEffect == 100 then
726-
output.BlockEffect = 100
727-
else
724+
output.BlockEffect = 100 - modDB:Sum("BASE", nil, "BlockEffect")
725+
if output.BlockEffect ~= 0 then
728726
output.ShowBlockEffect = true
729727
output.DamageTakenOnBlock = 100 - output.BlockEffect
730728
end

0 commit comments

Comments
 (0)