Connect Basic allied reserve shipment and provisional departure policy
This commit is contained in:
1 parent
fbbfabb404
commit
d3a09a95fe
9 files changed
+180
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user