summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-11-02 16:20:54 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:18 +0100
commitece767a27dc7a5903d247fc3c6e8100074d4f579 (patch)
treeccb031c63cf1784cb2c44a3f80eb3fe3093fa535 /rules.js
parent72750321e47f6c6f447efec09220dd4ae94d9f57 (diff)
downloadhammer-of-the-scots-ece767a27dc7a5903d247fc3c6e8100074d4f579.tar.gz
Mark blocks as moved after taking the first step.
This masks movement of King/Hobelars/Wallace/etc who can move 3 steps.
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 58f3a5b..3832b57 100644
--- a/rules.js
+++ b/rules.js
@@ -1576,6 +1576,7 @@ states.move_where = {
game.who = NOBODY
game.state = 'move_who'
} else {
+ set_add(game.moved, game.who)
if (game.distance === 0)
game.move_buf = [ area_tag(from) ]
let mark = move_block(game.who, from, to)
@@ -1602,7 +1603,6 @@ function end_move() {
game.activated.push(game.origin)
game.moves --
}
- set_add(game.moved, game.who)
game.turn_log.push(game.move_buf)
}
delete game.move_buf