From abffcc1c2282123265784c899ce5c569b34da8e3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 27 Jun 2021 18:54:43 +0200 Subject: crusader: Fix home shields. --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index c3ac89c..7c7bd54 100644 --- a/rules.js +++ b/rules.js @@ -258,10 +258,6 @@ function block_home(who) { } function list_seats(who) { - if (is_saladin_family(who)) - who = SALADIN; - if (who == "Raymond (Tiberias)" || who == "Raymond (Tripoli)") - who = "Raymond"; switch (block_type(who)) { case 'nomads': return [ block_home(who) ]; @@ -272,6 +268,10 @@ function list_seats(who) { who = BLOCKS[who].name; break; } + if (is_saladin_family(who)) + who = SALADIN; + if (who == "Raymond (Tiberias)" || who == "Raymond (Tripoli)") + who = "Raymond"; let list = []; for (let town in SHIELDS) if (SHIELDS[town].includes(who)) -- cgit v1.2.3