From 19a61f1d90f38865673df0aa97d5a08fb59ff413 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Nov 2024 12:58:20 +0100 Subject: Add dont_snap callback to prevent extra snapshots during card selection. --- rules.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 0a87053..94d5f8c 100644 --- a/rules.js +++ b/rules.js @@ -3517,6 +3517,12 @@ function observer_hand() { return hand } +exports.dont_snap = function(state) { + if (state.state === "play_card" && state.active !== BOTH) + return true + return false +} + exports.view = function(state, current) { game = state -- cgit v1.2.3