summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 7f00c51..639ff2d 100644
--- a/rules.js
+++ b/rules.js
@@ -4262,11 +4262,14 @@ function is_illegal_cross_map_retreat(from, to) {
// search all possible retreat paths of given length
function search_retreat_possible_dfs(result, seen, here, range) {
+ let pow = piece_power[game.selected[0]]
for (let next of data.cities.adjacent[here]) {
if (seen.includes(next))
continue
if (has_any_piece(next))
continue
+ if (is_forbidden_neutral_space(pow, next))
+ continue
if (is_illegal_cross_map_retreat(here, next))
continue
if (range === 1) {