From 31a3dcb85433a317d3a150889e1c5a48548b37a3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 6 Nov 2024 17:01:43 +0100 Subject: fix --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.js') 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 } -- cgit v1.2.3