summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-30 20:57:18 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commitacc8a4fc853c7c0e296487b250114f402b69fe95 (patch)
tree31a6836aeacce08f8358010a5c58a22d7c218001
parent0c108fd2291a85048cb66cbf19bd7128ef7ada8a (diff)
downloadfriedrich-acc8a4fc853c7c0e296487b250114f402b69fe95.tar.gz
Flag supply train as moved when it stops.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index ddcff96..7e01aeb 100644
--- a/rules.js
+++ b/rules.js
@@ -1594,6 +1594,8 @@ states.move_supply_train = {
this.stop()
},
stop() {
+ let who = game.selected[0]
+ set_add(game.moved, who)
end_move_piece()
},
space(to) {