From fcf9f5a4454f9fd42906417369acc3c0a0cde61f Mon Sep 17 00:00:00 2001
From: Tor Andersson <tor@ccxvii.net>
Date: Wed, 13 Mar 2024 16:00:18 +0100
Subject: Don't allow retreat into enemy exile areas.

---
 rules.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules.js b/rules.js
index e4a76a6..de31125 100644
--- a/rules.js
+++ b/rules.js
@@ -901,6 +901,8 @@ function can_block_continue(who, from, to) {
 }
 
 function can_block_retreat_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