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)