summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-27 18:54:43 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:38 +0100
commitabffcc1c2282123265784c899ce5c569b34da8e3 (patch)
tree1d365ece427bbc6b778d9ea56183d9628fe227dc /rules.js
parent3d4ecd18804f41743d31cb99eecd962f5210c938 (diff)
downloadcrusader-rex-abffcc1c2282123265784c899ce5c569b34da8e3.tar.gz
crusader: Fix home shields.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
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))