summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 8eebf44..2dee9bc 100644
--- a/rules.js
+++ b/rules.js
@@ -2802,6 +2802,14 @@ function observer_hand() {
return hand
}
+exports.dont_snap = function(state) {
+ if (state.state === "play_card" && state.active !== BOTH)
+ return true
+ if (state.state === "discard_and_play_card" && state.active !== BOTH)
+ return true
+ return false
+}
+
exports.view = function(state, current) {
game = state