summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index ce96410..6d1efa0 100644
--- a/rules.js
+++ b/rules.js
@@ -5684,8 +5684,11 @@ states.retreat_lone_leader = {
}
for_each_exit(from, to => {
if (can_defender_retreat_from_to(who, from, to)) {
- can_retreat = true
- gen_action_space(to)
+ // Forbid lone leader to coexist with enemy lone leader
+ if (!has_unbesieged_enemy_leader(to)) {
+ can_retreat = true
+ gen_action_space(to)
+ }
}
})
if (!can_retreat)