diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-24 10:19:00 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-24 10:19:00 +0000 |
commit | 9fd155055f7867ad7a712c5b52ddc661f4e43508 (patch) | |
tree | 6f7ed5e98e4fe0f690d2b72cd94d8ce8db148734 | |
parent | c17f450de53cd0e26a3bae091c1c5f5d6b68a305 (diff) | |
download | 1989-dawn-of-freedom-9fd155055f7867ad7a712c5b52ddc661f4e43508.tar.gz |
Fix Roundtable talks not discarded if Communist draws has no cards
-rw-r--r-- | rules.js | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1140,10 +1140,12 @@ states.draw_power_cards = { game.com_pwr_hand_limit = 0 } // Events which affect cards drawn - if (game.persistent_events.includes(C_ROUNDTABLE_TALKS) && game.com_pwr_hand_limit >= 2) { - log(`Democrat receives 2 cards from Communist due to C${C_ROUNDTABLE_TALKS}.`) - game.dem_pwr_hand_limit += 2 - game.com_pwr_hand_limit -= 2 + if (game.persistent_events.includes(C_ROUNDTABLE_TALKS)) { + if (game. game.com_pwr_hand_limit >= 2) { + log(`Democrat receives 2 cards from Communist due to C${C_ROUNDTABLE_TALKS}.`) + game.dem_pwr_hand_limit += 2 + game.com_pwr_hand_limit -= 2 + } game.persistent_events = game.persistent_events.filter(n => n !== C_ROUNDTABLE_TALKS) game.strategy_discard.push(C_ROUNDTABLE_TALKS) } |