Connect Basic allied reserve shipment and provisional departure policy

This commit is contained in:
Quintine committed 2026-10-08 08:53:44 +11:00
1 parent fbbfabb404
commit d3a09a95fe
9 files changed
+180 -6

No files matched your search

+3 -1
View File
@@ -9,6 +9,7 @@ import {
type PlanetologistMoveMode,
} from './planetologist-movement';
import { territoryEntryBlock, strongholdPathBlocked } from './occupancy';
import { isBasicAlliedShipmentVisit } from './allied-separation';
import {
distance,
gameDistance,
@@ -65,7 +66,8 @@ export function botEntryAllowed(
)
return false;
try {
return !territoryEntryBlock(g.players, p.id, to, advisors);
return !territoryEntryBlock(g.players, p.id, to, advisors,
kind === 'ship' && isBasicAlliedShipmentVisit(g, p, to));
} catch (error) {
if (error instanceof EcazOccupancyError) return false;
throw error;