summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-18 12:26:55 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:12:42 +0100
commit7ea8c7e31eac80034b894633f923f97b3afd2e40 (patch)
tree99a62ab9908524f33f9d6b3286578a72183ff513 /rules.js
parent9604b98c79ad447e7d084bb0acb7795bb24f93ad (diff)
downloadshores-of-tripoli-7ea8c7e31eac80034b894633f923f97b3afd2e40.tar.gz
tripoli: Count Tripolitan frigates when checking for battle spaces.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index f70cf2e..0556eb4 100644
--- a/rules.js
+++ b/rules.js
@@ -532,7 +532,7 @@ function is_benghazi_captured() {
function is_naval_battle_location(space) {
let n_us = count_american_frigates(space);
- let n_tr = count_corsairs(space);
+ let n_tr = count_tripolitan_frigates(space) + count_corsairs(space);
return (n_us > 0 && n_tr > 0);
}