From 01ce3cbc529154521789107551f3cbf2301b25ea Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Nov 2024 12:57:43 +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 e688381..d874126 100644 --- a/rules.js +++ b/rules.js @@ -3927,7 +3927,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