summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-17 22:16:21 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commit0cd62c5af96dc8752a237d25c609c406d40b1d6c (patch)
treed751288429f77a5526894d3f2327d9fcc53438e0
parent957ed31d4ea23802ab3e13bae7b780633473b1e4 (diff)
downloadrichard-iii-0cd62c5af96dc8752a237d25c609c406d40b1d6c.tar.gz
richard: Fix sea moving to exile areas.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 920da3b..10039db 100644
--- a/rules.js
+++ b/rules.js
@@ -1850,6 +1850,8 @@ states.sea_move_to = {
for (let to of AREAS[game.location[game.who]].exits) {
if (to === game.last_from)
continue;
+ if (is_enemy_exile_area(to))
+ continue;
if (is_friendly_or_vacant_area(to)) {
if (game.moves === 0) {
if (game.move_port[game.origin] === to)