diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs index 10b4b4aee1..7b4088ce0d 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs @@ -784,7 +784,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } // Despawn - if (player.dead) + bool oblivionFightDespawn = oblivionAlive && lifeRatio < 0.1f; + if (player.dead || oblivionFightDespawn) { shouldFly = false; npc.velocity.Y += 2f; diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs index d9e07abd08..94dd7f8e45 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs @@ -159,7 +159,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.reflectsProjectiles = false; - if (Main.player[npc.target].dead) + bool oblivionFightDespawn = oblivionAlive && lifeRatio < 0.1f; + if (Main.player[npc.target].dead || oblivionFightDespawn) { npc.velocity.Y -= 0.04f; if (npc.timeLeft > 10) @@ -1126,7 +1127,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.reflectsProjectiles = false; // Despawn - if (Main.player[npc.target].dead) + bool oblivionFightDespawn = oblivionAlive && lifeRatio < 0.1f; + if (Main.player[npc.target].dead || oblivionFightDespawn) { npc.velocity.Y -= 0.04f; if (npc.timeLeft > 10)