Spores deal no damage if Plantera isn't alive.

This commit is contained in:
mountaindrew10 committed 2023-02-16 20:09:42 -06:00
1 parent 01ccf0d9e3
commit 4da8b918b2
1 file changed
+10
+10
View File
@@ -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)