From bf78e3c07f66651d6520c81a06e6ec65872817da Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 4 Jan 2025 17:41:19 +0000 Subject: Fix Raise the Stakes if only 4 cards --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index c54177c..fda67ae 100644 --- a/rules.js +++ b/rules.js @@ -1295,8 +1295,8 @@ states.raise_stakes_1 = { inactive: 'raise the stakes', prompt() { if ( - (game.active === DEM && game.dem_pwr_hand.length < 3) || - (game.active === COM && game.com_pwr_hand.length < 3) + (game.active === DEM && game.dem_pwr_hand.length < 3 && game.raised_stakes_discard === 0) || + (game.active === COM && game.com_pwr_hand.length < 3 && game.raised_stakes_discard === 0) ) { view.prompt = 'Raise the Stakes: You must pass.' gen_action('pass') @@ -1358,8 +1358,8 @@ states.raise_stakes_2 = { inactive: 'raise the stakes', prompt() { if ( - (game.active === DEM && game.dem_pwr_hand.length < 3) || - (game.active === COM && game.com_pwr_hand.length < 3) + (game.active === DEM && game.dem_pwr_hand.length < 3 && game.raised_stakes_discard === 0) || + (game.active === COM && game.com_pwr_hand.length < 3 && game.raised_stakes_discard === 0) ) { view.prompt = 'Raise the Stakes: You must pass.' gen_action('pass') -- cgit v1.2.3