Actions
Bug #2514
openAI: military unit is stuck in non allied territory
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
No data to display
Actions