diff options
-rw-r--r-- | rules.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |