From 6707ff5fdfc7d8d99d242c0a4ce216944dd42bef Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 5 Aug 2025 20:07:44 +0200 Subject: [PATCH] Fixed #11097 --- core/src/mindustry/ai/types/FlyingFollowAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/ai/types/FlyingFollowAI.java b/core/src/mindustry/ai/types/FlyingFollowAI.java index f870f136f3..ab31802263 100644 --- a/core/src/mindustry/ai/types/FlyingFollowAI.java +++ b/core/src/mindustry/ai/types/FlyingFollowAI.java @@ -28,7 +28,7 @@ public class FlyingFollowAI extends FlyingAI{ } if(timer.get(timerTarget3, 30f)){ - following = Units.closest(unit.team, unit.x, unit.y, Math.max(unit.type.range, 400f), u -> !u.dead() && u.type != unit.type, (u, tx, ty) -> -u.maxHealth + Mathf.dst2(u.x, u.y, tx, ty) / 6400f); + following = Units.closest(unit.team, unit.x, unit.y, Math.max(unit.type.range, 400f), u -> !u.dead() && !(u.controller() instanceof FlyingFollowAI) && u.type != unit.type, (u, tx, ty) -> -u.maxHealth + Mathf.dst2(u.x, u.y, tx, ty) / 6400f); } }