From f6c631c8f6e08bf7f1084b41e036cdcab97ae164 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 2 Sep 2022 03:10:51 +0200 Subject: Don't allow lone leaders to stack with enemy lone leaders. --- rules.js | 7 +++++-- 1 file 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) -- cgit v1.2.3