diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-14 12:57:20 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-14 12:59:56 +0200 |
commit | 19c04c7edeebf0d643eefecd3c2e75c3ebb67443 (patch) | |
tree | ef91d444af53232b0c9935416236f4926310a1ba | |
parent | 937d8af3adec901a99e63b7f5152bc5605169d92 (diff) | |
download | time-of-crisis-19c04c7edeebf0d643eefecd3c2e75c3ebb67443.tar.gz |
Don't skip buy/trash cards phase during final turn.
Combinations of Pax Deorum, Demagogue, and Ludi Saeculares could mean
you need to draw a hand of cards during your last turn.
-rw-r--r-- | rules.js | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -4939,17 +4939,10 @@ function goto_buy_trash_discard() { else log("Played no cards.") - if (game.end) { - // Skip rest of turn... - for (let c of game.played) - set_add(current_discard(), c) - game.played.length = 0 - goto_end_of_turn() - } else if (current_hand().length > 0) { + if (current_hand().length > 0) game.state = "buy_trash_discard" - } else { + else goto_buy_trash() - } } states.buy_trash_discard = { @@ -5172,10 +5165,6 @@ states.flip_inactive_barbarians = { } function goto_refill_hand() { - if (game.end) { - end_refill_hand() - return - } game.state = "refill_hand" resume_refill_hand() } |