From 853930977cd91be3dfcac865152090baf4d2e2fd Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 14 Jul 2026 17:45:51 -0400 Subject: [PATCH] Slime God despawn bug fix!!!!!!!! --- NPCs/SlimeGod/SlimeGodCore.cs | 5 ++++- NPCs/SlimeGod/SplitCrimulanPaladin.cs | 2 ++ NPCs/SlimeGod/SplitEbonianPaladin.cs | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 4981b94c3f..7b0da70ac2 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -201,11 +201,14 @@ namespace CalamityMod.NPCs.SlimeGod // Make sure Opacity is set to 0.8f if it's below that when the vanish phase starts if (NPC.ai[3] == 0f) { - if (!NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) + if (!NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && + !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) { NPC.ai[3] = 1f; NPC.Opacity = 0.8f; } + else + NPC.Opacity = 0.01f; // This line ensures the core doesn't immediately explode into loot if it's currently possessing a paladin } // Emit dust diff --git a/NPCs/SlimeGod/SplitCrimulanPaladin.cs b/NPCs/SlimeGod/SplitCrimulanPaladin.cs index 7d30a48077..af132c16ec 100644 --- a/NPCs/SlimeGod/SplitCrimulanPaladin.cs +++ b/NPCs/SlimeGod/SplitCrimulanPaladin.cs @@ -712,6 +712,8 @@ namespace CalamityMod.NPCs.SlimeGod } } + public override bool CheckActive() => false; + public override Color? GetAlpha(Color drawColor) { Color lightColor = new Color(Main.DiscoR, 100, 150, NPC.alpha); diff --git a/NPCs/SlimeGod/SplitEbonianPaladin.cs b/NPCs/SlimeGod/SplitEbonianPaladin.cs index 20e145acd2..880c170ceb 100644 --- a/NPCs/SlimeGod/SplitEbonianPaladin.cs +++ b/NPCs/SlimeGod/SplitEbonianPaladin.cs @@ -753,6 +753,8 @@ namespace CalamityMod.NPCs.SlimeGod } } + public override bool CheckActive() => false; + public override Color? GetAlpha(Color drawColor) { Color lightColor = new Color(200, 150, Main.DiscoB, NPC.alpha);