From a72feb344843208f150afba22c67e53746cdcfd7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Nov 2024 12:41:30 +0100 Subject: Add dont_snap callback to prevent extra snapshot in objective selection. --- rules.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rules.js') 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 -- cgit v1.2.3