Connect Advanced allied reserve transit and legal departure
This commit is contained in:
1 parent
869412bebd
commit
7cef1a3412
10 files changed
+118
-44
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user