diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-24 12:41:30 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-24 12:41:30 +0100 |
commit | a72feb344843208f150afba22c67e53746cdcfd7 (patch) | |
tree | c9c2eec3be6d9d434901751a0375fa369cb1a289 /rules.js | |
parent | 69d7c215a3ec2961e089a37a2e89e3eb049cb9b3 (diff) | |
download | red-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.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |