summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-01-04 17:41:19 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-01-04 17:41:19 +0000
commitbf78e3c07f66651d6520c81a06e6ec65872817da (patch)
treefe7fb15c172351f16dba2c64d1af278cd547f45d
parent5cdc38e52ca0a6f120738ff1d9e744e5e6124372 (diff)
download1989-dawn-of-freedom-bf78e3c07f66651d6520c81a06e6ec65872817da.tar.gz
Fix Raise the Stakes if only 4 cards
-rw-r--r--rules.js8
1 files 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')