Continue Kull across paid sale responses
Verify and publish checkpoint container / container (push) Successful in 10m57s
Verify and publish checkpoint container / container (push) Successful in 10m57s
This commit is contained in:
1 parent
3d2470b7f8
commit
e7520e8679
9 files changed
+487
-18
No files matched your search
@@ -59,7 +59,14 @@ function nativeSource(f: SemutaIxAllyCostFixture) {
|
||||
assert.deepEqual(inventory(f.game), f.originalInventory); assert.equal(f.sourceActionCount, f.actions.length);
|
||||
}
|
||||
function open(f: SemutaIxAllyCostFixture) {
|
||||
const game = act(structuredClone(f.game), f.spender, f.action), pending = game.pendingTreacheryDiscard;
|
||||
let game = act(structuredClone(f.game), f.spender, f.action);
|
||||
// Basic Kull now gets its public pre-cost opportunity even when CHOAM has
|
||||
// no eligible card. Declining resumes this original Semuta-only scenario.
|
||||
if (game.pendingKull) {
|
||||
const choice = viewGame(game, 'choam').kullReaction; assert.ok(choice);
|
||||
game = act(game, 'choam', {type:'kullDecision', event:choice.event, decline:true});
|
||||
}
|
||||
const pending = game.pendingTreacheryDiscard;
|
||||
assert.ok(pending); assert.equal(pending.continuation.kind, 'karamaMarketDiscard');
|
||||
if (pending.continuation.kind !== 'karamaMarketDiscard') throw Error('Use the original paid ally replacement cost');
|
||||
assert.equal(pending.batch.cause, 'karama:ixAllyCard'); assert.equal(pending.reaction?.stage, 'offer');
|
||||
|
||||
Reference in new issue
Block a user