Support Atreides special Karama truth commitments
Verify and publish checkpoint container / container (push) Successful in 10m46s

This commit is contained in:
Quintine committed 2026-10-29 18:17:14 +11:00
1 parent add8e1d51a
commit 5079ab556f
16 files changed
+408 -19

No files matched your search

+8 -1
View File
@@ -7,7 +7,7 @@ import { RevivalExpressionPromiseError, type RevivalExpressionReturn } from './r
import { parseBattleActionClaim, type MixedBattleActionClaim } from './mixed-battle-question';
import { PlanClaimError } from './battle-promises';
import { PRINTED_CARD_EFFECTS, type PrintedCardEffect } from './printed-card-play';
import { WINDOW_CARD_EFFECTS, parseKaramaHarkonnenSpecialSource, parseKaramaEmperorSpecialSource, type WindowCardEffect } from './window-card-play';
import { WINDOW_CARD_EFFECTS, parseKaramaHarkonnenSpecialSource, parseKaramaEmperorSpecialSource, parseKaramaAtreidesSpecialSource, type WindowCardEffect } from './window-card-play';
import { StormDialQuestionError, parseStormDialClaim, parseStormDialSource, stormDialMatches, type StormDialClaim } from './storm-dial-question';
import { nativePromiseScopeSupported, type NativePromiseScope } from './native-promise-scope';
import { BattlePowerQuestionError, battlePowerMatches, battlePowerOf, parseBattlePowerClaim,
@@ -171,6 +171,8 @@ export function parseTurnActionLeaf(value: unknown): TurnActionLeaf {
'Retain the original Harkonnen special Karama Bidding window.');
if (value.effect === 'karamaEmperorSpecial') check(!!parseKaramaEmperorSpecialSource(value.source),
'Retain the original Emperor special Karama Revival window.');
if (value.effect === 'karamaAtreidesSpecial') check(!!parseKaramaAtreidesSpecialSource(value.source),
'Retain the original Atreides special Karama battle window.');
return { kind: 'windowCardPlay', effect: value.effect, source: value.source };
}
if (value.kind === 'battlePower') {
@@ -377,6 +379,11 @@ function readPromise(promise: TurnActionPromise): CompiledMixedAction<TurnAction
check(binding && binding.turn === promise.turn && binding.owner === promise.player,
'Retain the respondent’s original Emperor special Karama Revival window.');
}
for (const source of windowSources.get('karamaAtreidesSpecial') ?? []) {
const binding = parseKaramaAtreidesSpecialSource(source);
check(binding && binding.turn === promise.turn && binding.owner === promise.player,
'Retain the respondent’s original Atreides special Karama battle window.');
}
if ('windowCards' in promise) {
check(object(promise.windowCards) && keys(promise.windowCards, [...windowSources.keys()].sort().join(',')),
'Retain exactly the original named window-card effects.');