summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-17 07:36:44 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-17 07:36:44 +0100
commit3b33f2f5d166942ad870013708b68474fdcf5cf8 (patch)
tree2980638199f84fc6a51d980cc1e8a6dff337ff1d /rules.js
parent7ea1405b1b485f0e63188ff59e7d61350cd71492 (diff)
download1989-dawn-of-freedom-3b33f2f5d166942ad870013708b68474fdcf5cf8.tar.gz
Fix General Strike when a Power Struggle card played
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 4add39e..51e4090 100644
--- a/rules.js
+++ b/rules.js
@@ -638,6 +638,7 @@ states.resolve_opponent_event = {
game.return_state = 'resolve_opponent_event'
if (auto_resolve_events.includes(game.played_card) || switch_events.includes(game.played_card)) {
game.return = game.active
+ log(`C${game.played_card}`)
goto_vm(game.played_card)}
else {
if (game.active === DEM) {
@@ -646,6 +647,7 @@ states.resolve_opponent_event = {
game.return = DEM
}
next_player()
+ log(`C${game.played_card}`)
goto_vm(game.played_card)
}
},
@@ -1692,7 +1694,6 @@ states.general_strike = {
if (scoring_cards.includes(game.played_card)) {
log(`Played C${card}`)
game.return_state = 'general_strike'
- game.phase = 1
goto_vm(card)
return
}