Respect storm sector for rides into mobile stronghold
Verify and publish checkpoint container / container (push) Failing after 10m28s
Verify and publish checkpoint container / container (push) Failing after 10m28s
This commit is contained in:
1 parent
0d55333d5d
commit
ac1f32c859
11 files changed
+324
-3
No files matched your search
@@ -3,6 +3,7 @@ import type { Game, GameView, Player } from './engine';
|
||||
import { presenceAt } from './force-presence';
|
||||
import { nexusCardMode, validateNexusCards } from './nexus-cards';
|
||||
import { territoryEntryBlock } from './occupancy';
|
||||
import { wormRideDestinationBlock } from './worm-ride-destination';
|
||||
|
||||
/** The engine allocates a distinct event for each accepted worm appearance, even
|
||||
* when two worms visit the same territory. Capture before any devouring. */
|
||||
@@ -137,6 +138,8 @@ export function fremenCunningPublicDestinationBlock(
|
||||
return 'Ride into the mobile stronghold only from the territory it points at.';
|
||||
}
|
||||
if (sector !== 0 && sector === g.storm) return 'That sector is in storm.';
|
||||
const stormBlock = wormRideDestinationBlock(g, to, sector);
|
||||
if (stormBlock) return stormBlock;
|
||||
return territoryEntryBlock(g.players, owner, to);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user