Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 1ab1614

Browse files
committed
Revert "Adding in Renly's Training Block Logic"
This reverts commit a6f81c8.
1 parent a6f81c8 commit 1ab1614

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/Modules/CalcDefence.lua

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)