summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-03-13 16:00:18 +0100
committerTor Andersson <tor@ccxvii.net>2024-03-13 16:00:18 +0100
commitfcf9f5a4454f9fd42906417369acc3c0a0cde61f (patch)
tree757bdce36a459c9ef580a910f166cc9ef5c8ab81
parent0344b5622ab1b426e8ba5e783879732c80ad61af (diff)
downloadrichard-iii-fcf9f5a4454f9fd42906417369acc3c0a0cde61f.tar.gz
Don't allow retreat into enemy exile areas.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
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)) {