Support Advanced Truthtrance ally funding
Verify and publish checkpoint container / container (push) Successful in 11m4s
Verify and publish checkpoint container / container (push) Successful in 11m4s
This commit is contained in:
1 parent
e1209083e6
commit
b3843bf18e
10 files changed
+383
-11
No files matched your search
+2
-2
@@ -411,10 +411,10 @@ function parseQuestion(g: Game, asker: string, value: unknown): TruthQuestion {
|
||||
check(Object.keys(v).sort().join(',') === 'ally,kind,minimum,phase,target,turn',
|
||||
'Supply the current phase, respondent, ally and funding minimum.');
|
||||
const claim = parsePledgeClaim(v), respondent = g.players.find(player => player.id === v.target)!;
|
||||
check(g.status === 'playing' && !g.advanced && claim.turn === g.turn && claim.phase === g.phase &&
|
||||
check(g.status === 'playing' && claim.turn === g.turn && claim.phase === g.phase &&
|
||||
respondent.ally === claim.ally && g.players.some(player => player.id === claim.ally && player.ally === respondent.id) &&
|
||||
!g.response && !g.decision && !g.phaseOpening && !g.pendingTreacheryDiscard && !g.pendingKarama,
|
||||
'Choose a current mutual ally in a supported quiet Basic Bidding or Shipment and Movement window.');
|
||||
'Choose a current mutual ally in a supported quiet Bidding or Shipment and Movement window.');
|
||||
return {kind: 'pledgeAid', target: v.target, ...claim};
|
||||
}
|
||||
if (v.kind === 'bribe') {
|
||||
|
||||
Reference in new issue
Block a user