summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-17 17:45:20 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:12:42 +0100
commit71acb4ba7c5e970c9a8fa4d9409c0d6ba57fd75d (patch)
tree4e96bb33bf85efb6bcf3181498eeb3b31a2b8dd3
parent1c6533adb49dcc2a846b99fb12230bbdae37a6dd (diff)
downloadshores-of-tripoli-71acb4ba7c5e970c9a8fa4d9409c0d6ba57fd75d.tar.gz
tripoli: Only allow Happy Hunting if here are surviving corsairs.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index c8c9c59..3abac4b 100644
--- a/rules.js
+++ b/rules.js
@@ -2569,7 +2569,7 @@ function can_play_merchant_ship_converted(merchants) {
}
function can_play_happy_hunting() {
- return (game.where == TRIPOLI) && is_not_removed(HAPPY_HUNTING);
+ return (game.where == TRIPOLI) && (count_tripolitan_corsairs(TRIPOLI) > 0) && is_not_removed(HAPPY_HUNTING);
}
function can_play_the_guns_of_tripoli() {