summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-03-31 12:30:04 +0200
committerTor Andersson <tor@ccxvii.net>2024-03-31 12:30:04 +0200
commit5ecc8b276839811d7d665dd3595cbe641bbaaf7b (patch)
treec62faa16523c365f9dc521e7104fc05282edef4d /rules.js
parentfcf9f5a4454f9fd42906417369acc3c0a0cde61f (diff)
downloadrichard-iii-5ecc8b276839811d7d665dd3595cbe641bbaaf7b.tar.gz
Don't allow regroup into enemy exile areas.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
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))