Preserve Sapho Truth order during ordinary auctions
This commit is contained in:
1 parent
298c8245a6
commit
8e16542784
13 files changed
+534
-12
No files matched your search
@@ -1337,6 +1337,12 @@ void test('a queued definite Truthtrance answer offers its card before the next
|
||||
}
|
||||
const queue = declared.truthtrance!.queue.map(entry => entry.player);
|
||||
assert.equal(queue.length, 2);
|
||||
// The possession-independent Sapho window now precedes the first question.
|
||||
while (declared.truthtrance?.stage === 'order') {
|
||||
const frame: NonNullable<NonNullable<Game['truthtrance']>['order']> = declared.truthtrance.order!;
|
||||
const holder = frame.holders.find(id => !frame.passed.includes(id))!;
|
||||
declared = applyAction(declared, holder, { type: 'truthOrderPass', event: frame.event, revision: frame.revision });
|
||||
}
|
||||
const asked = applyAction(declared, queue[0], { type: 'truthAsk',
|
||||
question: { kind: 'fact', target: 'e', fact: { kind: 'hand', name: 'Shield' } },
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user