diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-27 18:54:43 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:38 +0100 |
commit | abffcc1c2282123265784c899ce5c569b34da8e3 (patch) | |
tree | 1d365ece427bbc6b778d9ea56183d9628fe227dc /rules.js | |
parent | 3d4ecd18804f41743d31cb99eecd962f5210c938 (diff) | |
download | crusader-rex-abffcc1c2282123265784c899ce5c569b34da8e3.tar.gz |
crusader: Fix home shields.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)) |