From 4da8b918b2a144fcb2aa9f7d302d3d274d89ce58 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Thu, 16 Feb 2023 20:09:42 -0600 Subject: [PATCH] Spores deal no damage if Plantera isn't alive. --- NPCs/CalamityGlobalNPC.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index ce5c30f5d2..9e35b8aba6 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -2901,6 +2901,16 @@ namespace CalamityMod.NPCs npc.Size = hitboxSize; } + // Spore enemies deal no damage if Plantera isn't alive + if (npc.type == NPCID.Spore) + { + if (npc.damage > 0) + { + if (!NPC.AnyNPCs(NPCID.Plantera)) + npc.damage = npc.defDamage = 0; + } + } + if (CalamityWorld.revenge || BossRushEvent.BossRushActive) { switch (npc.type)