From e097346a73e91e923890fe113209ceb389b7b8b1 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 23 Jul 2023 15:36:34 -0400 Subject: [PATCH] Fixed #8794 --- core/src/mindustry/ai/ControlPathfinder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/ai/ControlPathfinder.java b/core/src/mindustry/ai/ControlPathfinder.java index 711c65a9ab..dcfe370f9a 100644 --- a/core/src/mindustry/ai/ControlPathfinder.java +++ b/core/src/mindustry/ai/ControlPathfinder.java @@ -55,7 +55,8 @@ public class ControlPathfinder{ costNaval = (team, tile) -> //impassable same-team neutral block, or non-liquid - ((PathTile.solid(tile) && ((PathTile.team(tile) == team && !PathTile.teamPassable(tile)) || PathTile.team(tile) == 0)) || !PathTile.liquid(tile) ? impassable : 1) + + (PathTile.solid(tile) && ((PathTile.team(tile) == team && !PathTile.teamPassable(tile)) || PathTile.team(tile) == 0)) || !PathTile.liquid(tile) ? impassable : + 1 + //impassable synthetic enemy block ((PathTile.team(tile) != team && PathTile.team(tile) != 0) && PathTile.solid(tile) ? wallImpassableCap : 0) + (PathTile.nearGround(tile) || PathTile.nearSolid(tile) ? 6 : 0);