Skip to content

Commit

Permalink
Wrong Variable
Browse files Browse the repository at this point in the history
Needs to be baseBlockChance or else it doesn't have the complete 50% block chance granted from Ascendency.
  • Loading branch information
Jonathan-Dang committed Jan 19, 2025
1 parent abb03b4 commit 156357c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function calcs.defence(env, actor)
output.ShieldBlockChance = modDB:Override(nil, "ReplaceShieldBlock") or baseBlockChance

-- Apply player block overrides if Necromantic Aegis allocated
output.ShieldBlockChance = actor == env.minion and env.keystonesAdded["Necromantic Aegis"] and env.player.modDB:Override(nil, "ReplaceShieldBlock") or output.ShieldBlockChance
baseBlockChance = actor == env.minion and env.keystonesAdded["Necromantic Aegis"] and env.player.modDB:Override(nil, "ReplaceShieldBlock") or output.ShieldBlockChance

if modDB:Flag(nil, "BlockAttackChanceIsEqualToParent") then
output.BlockChance = m_min(actor.parent.output.BlockChance, output.BlockChanceMax)
Expand Down

0 comments on commit 156357c

Please sign in to comment.