summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-07 19:32:50 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-07 19:32:50 +0100
commitb7a05669720e3a7cec93f958897f113ee2e642ae (patch)
tree54de11e9611a7ce7d3021041db362cc22547b029 /rules.js
parentd2b4bb92318a499acea8ed5ac70650012b003cdd (diff)
downloadtime-of-crisis-b7a05669720e3a7cec93f958897f113ee2e642ae.tar.gz
Skip Ludi Saeculares if emperor has no cards in hand.
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 231d153..b6b87b4 100644
--- a/rules.js
+++ b/rules.js
@@ -1676,7 +1676,8 @@ states.palmyra_allies = {
function goto_ludi_saeculares() {
game.count = game.current // remember current player
let emperor = get_province_player(ITALIA)
- if (emperor >= 0) {
+ // skip if emperor has no cards left in hand (frumentarii + 3 demagogues combo)
+ if (emperor >= 0 && game.hand[emperor].length > 0) {
game.current = emperor
game.state = "ludi_saeculares"
} else {