From 5dc6a538bd9e966b3b4e090ac8dcdb566a96b97a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 28 Mar 2022 00:29:58 +0200 Subject: Fix bug with is_piece_unbesieged_in_space and forces. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index fd3c01a..edfc36c 100644 --- a/rules.js +++ b/rules.js @@ -1088,7 +1088,7 @@ function is_piece_in_space(p, s) { } function is_piece_unbesieged_in_space(p, s) { - return game.location[p] === s; + return piece_space_and_inside(p) === s; } function is_piece_besieged_in_space(p, s) { -- cgit v1.2.3