summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-06 17:01:43 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-06 17:01:43 +0100
commit31a3dcb85433a317d3a150889e1c5a48548b37a3 (patch)
tree2103e98ac283e960c59e48f3ac76cdde2690471f /rules.js
parente90132edeae9935442e1288101eddc06620b81e2 (diff)
downloadmaria-31a3dcb85433a317d3a150889e1c5a48548b37a3.tar.gz
fix
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 1224f2f..ca58cb7 100644
--- a/rules.js
+++ b/rules.js
@@ -2353,7 +2353,7 @@ function init_movement() {
function has_unmoved_piece(pow) {
for (let p of all_controlled_pieces(pow))
- if (!set_has(game.moved, p))
+ if (!set_has(game.moved, p) && is_piece_on_map(p))
return true
return false
}