summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-24 12:41:30 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-24 12:41:30 +0100
commita72feb344843208f150afba22c67e53746cdcfd7 (patch)
treec9c2eec3be6d9d434901751a0375fa369cb1a289 /rules.js
parent69d7c215a3ec2961e089a37a2e89e3eb049cb9b3 (diff)
downloadred-flag-over-paris-a72feb344843208f150afba22c67e53746cdcfd7.tar.gz
Add dont_snap callback to prevent extra snapshot in objective selection.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index bdba2c7..07a6bc8 100644
--- a/rules.js
+++ b/rules.js
@@ -3788,6 +3788,12 @@ function draw_strategy_card() {
// === VIEW ===
+exports.dont_snap = function(state) {
+ if (state.state === "choose_objective_card" && state.active !== "Both")
+ return true
+ return false
+}
+
exports.view = function (state, player) {
game = state