summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-03-28 00:29:58 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commit5dc6a538bd9e966b3b4e090ac8dcdb566a96b97a (patch)
treeffe88d88def155c99eadbc324b27cd51095a62d8
parentdd7e07464eb1ac1682b9ad5154d899d336bc00a2 (diff)
downloadwilderness-war-5dc6a538bd9e966b3b4e090ac8dcdb566a96b97a.tar.gz
Fix bug with is_piece_unbesieged_in_space and forces.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
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) {