summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-02-21 11:45:19 +0100
committerTor Andersson <tor@ccxvii.net>2024-02-21 11:45:19 +0100
commite62380262d83748e2a84949d72f4e3c11ea0678f (patch)
treeece811434fafb30e091dc3fc6d7ecbe816d1ad9b
parent33c664391add7d7b57775689e780b0110d13c1a4 (diff)
downloadtime-of-crisis-e62380262d83748e2a84949d72f4e3c11ea0678f.tar.gz
End Frumentarii draw if no more cards are available.
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index e0751ab..0bd537f 100644
--- a/rules.js
+++ b/rules.js
@@ -3620,6 +3620,12 @@ function play_frumentarii() {
function resume_frumentarii() {
flip_discard_to_available_if_empty()
+
+ // if no more cards available!
+ if (game.count > 0 && game.draw[game.current].length === 0) {
+ game.count = 0
+ resume_take_actions()
+ }
}
states.frumentarii = {