From 7507d400f3df0aa92705f629e2368d170bd93b1b Mon Sep 17 00:00:00 2001 From: Sean Petrie Date: Mon, 24 Jun 2024 12:16:37 -0500 Subject: [PATCH] Fixed null call --- TabletopTweaks-Core/NewComponents/AddArmorACModifier.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TabletopTweaks-Core/NewComponents/AddArmorACModifier.cs b/TabletopTweaks-Core/NewComponents/AddArmorACModifier.cs index 06313e9..1752907 100644 --- a/TabletopTweaks-Core/NewComponents/AddArmorACModifier.cs +++ b/TabletopTweaks-Core/NewComponents/AddArmorACModifier.cs @@ -22,7 +22,7 @@ public override void OnTurnOn() { if (IsShield) { base.Owner.Body.CurrentHandsEquipmentSet?.SecondaryHand?.MaybeShield?.ArmorComponent?.RecalculateStats(); } else { - base.Owner.Body.Armor?.Armor?.RecalculateStats(); + base.Owner.Body.Armor?.MaybeArmor?.RecalculateStats(); } } @@ -31,7 +31,7 @@ public override void OnTurnOff() { if (IsShield) { base.Owner.Body.CurrentHandsEquipmentSet?.SecondaryHand?.MaybeShield?.ArmorComponent?.RecalculateStats(); } else { - base.Owner.Body.Armor?.Armor?.RecalculateStats(); + base.Owner.Body.Armor?.MaybeArmor?.RecalculateStats(); } }