summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-01-16 15:52:13 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-01-16 15:52:13 +0000
commit07f7ad04b5542a17206e340e12da7a9ce26399d0 (patch)
treefa899985788eda2dd241e281fe644d11bebdb729 /rules.js
parent3d87f6a94ff0096958d7c7d8490ad34d59cc4462 (diff)
download1989-dawn-of-freedom-07f7ad04b5542a17206e340e12da7a9ce26399d0.tar.gz
Fix Surrender power under General Strike
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index a3ffe7e..13c43ed 100644
--- a/rules.js
+++ b/rules.js
@@ -1700,7 +1700,7 @@ states.choose_power = {
push_undo()
log_gap(`Communist voluntarily surrenders Power.`)
take_power(game.pwr_struggle_in)
- permanently_remove(game.played_card)
+ permanently_remove(scoring_cards[countries.indexOf(game.pwr_struggle_in)])
game.phase = 1
},
scoring() {
@@ -1929,10 +1929,12 @@ states.general_strike = {
card(card) {
push_undo()
silent_discard(card)
+ game.played_card = card
game.available_ops = get_card_ops(card)
if (scoring_cards.includes(card)) {
game.vm_event = card
log(`Played C${card} for the event.`)
+ log_struggle_banner(game.played_card)
game.return_state = 'end_round'
goto_vm(game.vm_event)
} else {