Oblivion fight mech despawns.

This commit is contained in:
mountaindrew10 committed 2024-04-26 14:36:23 -05:00
1 parent 9c3d73d563
commit 13e574b1cc
2 files changed
+6 -3

No files matched your search

@@ -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;
+4 -2
View File
@@ -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)