summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-24 12:57:43 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-24 12:57:43 +0100
commit01ce3cbc529154521789107551f3cbf2301b25ea (patch)
tree4d3030f1888c08b7dfab3884b4ee0ea3d8e52168
parentd7904f7d9f2b0f9bd59d58cf5bc9cee465f14a14 (diff)
downloadcrusader-rex-master.tar.gz
Add dont_snap callback to prevent extra snapshots during card selection.HEADmaster
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
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