From 66090b2a6382c49843d9f41ba322fa5e772c19b8 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 27 Nov 2019 00:12:18 -0500 Subject: [PATCH] changed it again --- NPCs/CalamityGlobalNPC.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 5a92a6c06b..5ed8f11f04 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -655,11 +655,8 @@ namespace CalamityMod.NPCs { if (!npc.friendly) { - if (npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && !AquaticScourgeIDs.Contains(npc.type) && !EaterofWorldsIDs.Contains(npc.type) && !AstrumDeusIDs.Contains(npc.type) && !DestroyerIDs.Contains(npc.type)) - { - npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - } + npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; } foreach (KeyValuePair BossRushHPChange in BossRushHPChanges)