Project

General

Profile

Actions

Bug #2514

open

AI: military unit is stuck in non allied territory

Added by Frostblade metablaster 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
AI
Target version:
-
Start date:
12/01/2026
Due date:
% Done:

0%

Estimated time:

Description

If a military unit finds itself in a territory that is non allied nor at war AI won't be able to move it because path finding fails.
Path finding fails because tile behavior is TB_IGNORE for all tiles around the unit including the tile the unit stands on.
A unit may find itself in that position when ownership of a tile changes, e.g. city was conquered by a player that is at peace with the unit owner.

I couldn't fix this even after temporarily setting tile behavior to TB_NORMAL, the path was found but the unit still didn't move.

Attached is reproducible save file and screenshot pointing at stuck units.


Files

continue.sav.xz (135 KB) continue.sav.xz Frostblade metablaster, 12/01/2026 05:27 PM
unitstuck.png (523 KB) unitstuck.png Frostblade metablaster, 12/01/2026 05:27 PM
unitstuck.png

No data to display

Actions

Also available in: Atom PDF