diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-03-13 16:00:18 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-03-13 16:00:18 +0100 |
commit | fcf9f5a4454f9fd42906417369acc3c0a0cde61f (patch) | |
tree | 757bdce36a459c9ef580a910f166cc9ef5c8ab81 | |
parent | 0344b5622ab1b426e8ba5e783879732c80ad61af (diff) | |
download | richard-iii-fcf9f5a4454f9fd42906417369acc3c0a0cde61f.tar.gz |
Don't allow retreat into enemy exile areas.
-rw-r--r-- | rules.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)) { |