From 5ecc8b276839811d7d665dd3595cbe641bbaaf7b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 31 Mar 2024 12:30:04 +0200 Subject: Don't allow regroup into enemy exile areas. --- rules.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index de31125..098ceaa 100644 --- a/rules.js +++ b/rules.js @@ -915,6 +915,8 @@ function can_block_retreat_to(who, to) { } function can_block_regroup_to(who, to) { + if (is_enemy_exile_area(to)) + return false if (is_friendly_area(to) || is_vacant_area(to)) { let from = game.location[who] if (can_block_use_border(who, from, to)) -- cgit v1.2.3