From a90dc9f39c1fcb57343f65571e2012f52f69f5fe Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 3 May 2022 14:28:07 +0200 Subject: End retreating with all if there are no more destinations available. --- rules.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 1d3301c..c59d172 100644 --- a/rules.js +++ b/rules.js @@ -5549,6 +5549,8 @@ states.retreat_all_defenders_to = { } } }); + if (!can_all_defenders_retreat_from(from)) + done = true; if (done) game.state = 'retreat_defender'; }, -- cgit v1.2.3