diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 113bac28b9..c90f772c39 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -333,7 +333,8 @@ namespace CalamityMod.NPCs } } - if (player.dead) + float maxDistance = calamityGlobalNPC.newAI[0] == 1f ? 8000f : 4000f; + if (player.dead || Vector2.Distance(npc.Center, player.Center) > maxDistance) { calamityGlobalNPC.newAI[1] = 1f; npc.TargetClosest(false);