Skip to content

Commit fd1be9c

Browse files
LocalIdentityLocalIdentity
authored andcommitted
Fix Juggernaut Unbreakable not working with Iron Reflexes + evasion (PathOfBuildingCommunity#6101)
The Juggernaut Unbreakable node is meant to double the armour received from having iron reflexes and evasion on your body armour Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent e7eb3da commit fd1be9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Modules/CalcDefence.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,9 @@ function calcs.defence(env, actor)
509509
end
510510
evasionBase = armourData.Evasion or 0
511511
if evasionBase > 0 then
512+
if slot == "Body Armour" and modDB:Flag(nil, "Unbreakable") and ironReflexes then
513+
evasionBase = evasionBase * 2
514+
end
512515
gearEvasion = gearEvasion + evasionBase
513516
if breakdown then
514517
breakdown.slot(slot, nil, slotCfg, evasionBase, nil, "Evasion", "ArmourAndEvasion", "Defences")

0 commit comments

Comments
 (0)