summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-24 12:58:20 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-24 12:58:20 +0100
commit19a61f1d90f38865673df0aa97d5a08fb59ff413 (patch)
tree68544c912399e2e1f7ca6a9194139ee55e6e4b0c
parent511aa54f070d33f7b356d506ab498c83554cbc4d (diff)
downloadrichard-iii-19a61f1d90f38865673df0aa97d5a08fb59ff413.tar.gz
Add dont_snap callback to prevent extra snapshots during card selection.HEADmaster
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
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