From 8e34f19c0147ef569db9518bd3459256855e5a0e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Nov 2024 12:56:45 +0100 Subject: Add dont_snap callback to prevent extra snapshots during card selection. --- rules.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 319f1a0..5a8c9af 100644 --- a/rules.js +++ b/rules.js @@ -3173,7 +3173,11 @@ function observer_hand() { return hand } -exports.is_checkpoint = (a, b) => a.turn !== b.turn +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