summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-18 11:41:28 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-18 11:41:28 +0100
commit6ba53ecea10f68df8af6853287047f628e658dc0 (patch)
treec3d04a219251eb03138539128843b78b2db987bd
parentb3209138cec501c447931ae8af5974bbc5cf2055 (diff)
downloadpax-pamir-6ba53ecea10f68df8af6853287047f628e658dc0.tar.gz
Player must have at least one card to be Taxed with Ancient Lineage.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index a9c78d1..f51bbb2 100644
--- a/rules.js
+++ b/rules.js
@@ -1467,6 +1467,8 @@ function can_tax_player(active, p, claim) {
let okay = claim
let shelter = 0
let court = game.players[p].court
+ if (court.length === 0)
+ return false
for (let i = 0; i < court.length; ++i) {
let c = court[i]
if (!okay && player_rules_region(active, cards[c].region))