Support Sapho Truth order during Richese cache auctions

This commit is contained in:
Quintine committed 2026-10-27 18:55:42 +11:00
1 parent 8e16542784
commit 6a31315c95
17 files changed
+420 -25

No files matched your search

+4 -1
View File
@@ -1290,9 +1290,12 @@ export function resolveTruthAction(
// decision to open it never inspects who holds Juice of Sapho.
const ordinaryLot = g.phase === 3 && !!g.auction?.cards[g.auction.index] &&
!!g.auction.active && !g.currentAuctionSale && !g.ixAuction;
const richeseCacheLot = g.phase === 3 && !!g.richeseAuction && g.richeseAuction.source === 'cache' &&
(g.richeseAuction.method === 'onceAround' || g.richeseAuction.method === 'silent') &&
!g.richeseAuction.outcome && !g.currentAuctionSale && !g.auction && !g.ixAuction;
const clean = g.status === 'playing' && g.expansions.includes('choam') && !g.response && !g.decision && !g.phaseOpening &&
!g.pendingKarama && !g.pendingTreacheryDiscard && !g.pendingNullentropy && (!g.auction || ordinaryLot) &&
!g.richeseAuction && !g.battle && !g.pendingRevival && !g.pendingShipment &&
(!g.richeseAuction || richeseCacheLot) && !g.battle && !g.pendingRevival && !g.pendingShipment &&
!g.pendingAmbassador && !g.pendingTerrorEntry && !g.pendingChoamMove &&
!g.pendingIxMove && !g.pendingFremenMove && !g.pendingExchange && !g.pendingRicheseGift &&
!g.karamaShipping && !g.ornithopter && !g.summonedWorm && g.wormRides.length === 0 &&