Support printed Kull during market Ghola
Verify and publish checkpoint container / container (push) Successful in 11m25s
Verify and publish checkpoint container / container (push) Successful in 11m25s
This commit is contained in:
1 parent
79fc12c1c1
commit
bcca08cac5
10 files changed
+232
-25
No files matched your search
@@ -6,6 +6,15 @@ import { quoteChoamSaleCancellation } from './choam-sale-cancellation';
|
||||
type OrdinaryDiscard = Extract<NonNullable<Game['pendingTreacheryDiscard']>['continuation'],
|
||||
{ kind: 'ordinaryCardDiscard' }>;
|
||||
|
||||
/** Shared bounds for the original discard and its later income response. */
|
||||
export function semutaMarketGholaProfile(game: Game): boolean {
|
||||
return game.status === 'playing' && !game.advanced && game.semutaPreview === true &&
|
||||
game.expansions.includes('choam') && !game.homeworlds && !game.nexusCards &&
|
||||
!game.leaderSkills && !game.techTokens && !game.strongholdCards && !game.ecazTreachery &&
|
||||
!game.nexusKullPreview && !game.discoveryEnabled && !game.discoveries && !game.discoveryStash &&
|
||||
!game.greatMaker && !game.sandtrout && !game.coalitionState;
|
||||
}
|
||||
|
||||
/** Qualify the original Ghola discard while its CHOAM sale is suspended.
|
||||
* The caller separately owns the Basic Semuta profile and the ordinary
|
||||
* revival-income qualification. This never changes a saved frame. */
|
||||
@@ -13,12 +22,7 @@ export function semutaMarketGholaSupported(
|
||||
game: Game, continuation: OrdinaryDiscard, entries: FreshDiscardBatch['entries'],
|
||||
): boolean {
|
||||
const pending = game.pendingChoamMarketGhola, discard = game.pendingTreacheryDiscard;
|
||||
if (game.status !== 'playing' || game.advanced || game.semutaPreview !== true ||
|
||||
!game.expansions.includes('choam') || game.homeworlds || game.nexusCards ||
|
||||
game.leaderSkills || game.techTokens || game.strongholdCards || game.ecazTreachery ||
|
||||
game.kullPreview || game.nexusKullPreview ||
|
||||
game.discoveryEnabled || game.discoveries || game.discoveryStash || game.greatMaker ||
|
||||
game.sandtrout || game.coalitionState || !pending || !game.choamMarket ||
|
||||
if (!semutaMarketGholaProfile(game) || !pending || !game.choamMarket ||
|
||||
continuation.kind !== 'ordinaryCardDiscard' || continuation.effect !== 'ghola' ||
|
||||
pending.stage !== 'discard' || pending.turn !== game.turn || pending.phase !== game.phase ||
|
||||
pending.player !== continuation.player || pending.card !== continuation.card ||
|
||||
|
||||
Reference in new issue
Block a user