summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-06 20:59:01 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-06 20:59:01 +0200
commitd0b16605fa9b6003dfd4e33acd7100a9309b6d8d (patch)
tree3ff06699fb79f360a6a17680f11d83b8f0ce4142 /rules.js
parent5b3f9cc0415fab0b7458f5bd1a54f74ba9d84e82 (diff)
downloadandean-abyss-d0b16605fa9b6003dfd4e33acd7100a9309b6d8d.tar.gz
Add replay checkpoints.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index c8b61cf..07ed5ae 100644
--- a/rules.js
+++ b/rules.js
@@ -8109,7 +8109,7 @@ exports.action = function (state, role, action, arg) {
}
exports.is_checkpoint = function (a, b) {
- return a.turn !== b.turn
+ return a.deck.length !== b.deck.length
}
// === COMMON LIBRARY ===