Oblivion fight mech despawns.
This commit is contained in:
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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user