Support Advanced No-Field reveal interruptions
Verify and publish checkpoint container / container (push) Successful in 11m29s
Verify and publish checkpoint container / container (push) Successful in 11m29s
This commit is contained in:
1 parent
5e7f7b45e4
commit
ee8ec0a84e
11 files changed
+607
-4
No files matched your search
@@ -13,7 +13,7 @@ const factions = new Set([
|
||||
* This does not authorize a seat, marker or event, and does not mutate the
|
||||
* game. The normal No-Field action and view own those checks. */
|
||||
export function richeseRevealInterruptSupported(g: Game): boolean {
|
||||
if (g.status !== 'playing' || g.advanced || !Number.isSafeInteger(g.phase) ||
|
||||
if (g.status !== 'playing' || !Number.isSafeInteger(g.phase) ||
|
||||
g.phase < 0 || g.phase >= 6 || !Number.isSafeInteger(g.turn) || g.turn < 1 ||
|
||||
!Array.isArray(g.expansions) || !g.expansions.includes('choam') ||
|
||||
g.expansions.some(deck => deck !== 'choam' && deck !== 'ix' && deck !== 'ecaz') ||
|
||||
@@ -123,7 +123,12 @@ export function richeseRevealInterruptSupported(g: Game): boolean {
|
||||
// source are admitted. Other shipment and revival transactions still
|
||||
// need their own continuation proofs.
|
||||
const response = g.response;
|
||||
if (g.decision || g.phaseOpening || g.choamMarket ||
|
||||
// Advanced begins Atreides' forecast and the Guild timing choice together;
|
||||
// revealing an existing marker changes neither of those original parents.
|
||||
const forecastGuildTiming = g.advanced && response.kind === 'atreidesSpice' &&
|
||||
g.phase === 5 && g.decision?.kind === 'guildTiming' &&
|
||||
g.players.some(player => player.id === g.decision!.player && player.faction === 'guild');
|
||||
if ((g.decision && !forecastGuildTiming) || g.phaseOpening || g.choamMarket ||
|
||||
!Array.isArray(response.passed) || new Set(response.passed).size !== response.passed.length ||
|
||||
response.passed.some(id => !g.players.some(player => player.id === id))) return false;
|
||||
const owner = g.players.find(player => player.id === response.owner);
|
||||
|
||||
Reference in new issue
Block a user