From 0854338d79c51e10c6522680f439a34e6679f49a Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Thu, 30 Sep 2021 21:14:06 -0500 Subject: [PATCH] 1 - Closed Thanatos segments no longer trigger pierce resist. --- NPCs/CalamityGlobalNPC.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 4b40065fc7..8ee5695278 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3660,6 +3660,10 @@ namespace CalamityMod.NPCs damage = (int)(damage * 0.2); } + // Thanatos segments do not trigger pierce resistance if they are closed + if (ThanatosIDs.Contains(npc.type) && unbreakableDR) + return; + float damageReduction = projectile.Calamity().timesPierced * projectile.Calamity().PierceResistHarshness; if (damageReduction > projectile.Calamity().PierceResistCap) damageReduction = projectile.Calamity().PierceResistCap;