This repository was archived by the owner on Oct 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -725,24 +725,15 @@ function calcs.defence(env, actor)
725725 end
726726 output .BlockChanceOverCap = 0
727727 output .SpellBlockChanceOverCap = 0
728-
729728 local baseBlockChance = 0
730729 if actor .itemList [" Weapon 2" ] and actor .itemList [" Weapon 2" ].armourData then
731- if env .allocNodes [23005 ] and actor .itemList [" Weapon 2" ].type == " Shield" then
732- baseBlockChance = baseBlockChance + 40
733- else
734- baseBlockChance = baseBlockChance + (actor .itemList [" Weapon 2" ].armourData .BlockChance or 0 )
735- end
730+ baseBlockChance = baseBlockChance + (actor .itemList [" Weapon 2" ].armourData .BlockChance or 0 )
736731 end
737-
738732 if actor .itemList [" Weapon 3" ] and actor .itemList [" Weapon 3" ].armourData then
739- if env .allocNodes [23005 ] and actor .itemList [" Weapon 3" ].type == " Shield" then
740- baseBlockChance = baseBlockChance + 40
741- else
742- baseBlockChance = baseBlockChance + (actor .itemList [" Weapon 3" ].armourData .BlockChance or 0 )
743- end
733+ baseBlockChance = baseBlockChance + (actor .itemList [" Weapon 3" ].armourData .BlockChance or 0 )
744734 end
745-
735+ output .ShieldBlockChance = baseBlockChance
736+ baseBlockChance = modDB :Override (nil , " ReplaceShieldBlock" ) or baseBlockChance
746737 if modDB :Flag (nil , " BlockAttackChanceIsEqualToParent" ) then
747738 output .BlockChance = m_min (actor .parent .output .BlockChance , output .BlockChanceMax )
748739 elseif modDB :Flag (nil , " BlockAttackChanceIsEqualToPartyMember" ) then
You can’t perform that action at this time.
0 commit comments