Add opt-in printed Kull interception and saved counter continuation
This commit is contained in:
1 parent
3285172eec
commit
aeae152370
32 files changed
+2487
-146
No files matched your search
+4
-1
@@ -12,12 +12,15 @@ type TurnView = Pick<
|
||||
| 'phaseOpening'
|
||||
| 'automaticContinuationPending'
|
||||
> &
|
||||
Partial<Pick<GameView, 'biddingEnd'>>;
|
||||
Partial<Pick<GameView, 'biddingEnd' | 'kullReaction'>>;
|
||||
|
||||
/** The single current decision owner for the table banner and seat highlight.
|
||||
* Shared response windows have no single acting seat. Only public view fields
|
||||
* participate; this does not decide which gameplay actions are legal. */
|
||||
export function tableActionOwner(g: TurnView): string | null {
|
||||
if (g.kullReaction && g.status === 'playing')
|
||||
return g.players.some(p => p.id === g.kullReaction!.player)
|
||||
? g.kullReaction.player : null;
|
||||
if (
|
||||
g.status !== 'playing' ||
|
||||
g.automaticContinuationPending ||
|
||||
|
||||
Reference in new issue
Block a user