Connect Advanced allied reserve transit and legal departure

This commit is contained in:
Quintine committed 2026-10-08 16:58:21 +11:00
1 parent 869412bebd
commit 7cef1a3412
10 files changed
+118 -44

No files matched your search

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