summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-04 13:06:21 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit7556b97dcf895ae59ba4f9ada19baa6e00477cc8 (patch)
tree28aec932bc34262f37f8937bdd22b2a95568b568
parent6c12573074cc3eae1ac85d9be342f660aec4d19f (diff)
downloadnevsky-7556b97dcf895ae59ba4f9ada19baa6e00477cc8.tar.gz
Fix Tempest.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 8d9e79f..3444cca 100644
--- a/rules.js
+++ b/rules.js
@@ -2178,7 +2178,7 @@ states.tempest = {
ship(lord) {
logi(`Removed ships from L${lord}.`)
let n = 0
- if (lord_has_capability(AOW_TEUTONIC_COGS))
+ if (lord_has_capability(lord, AOW_TEUTONIC_COGS))
n = Math.ceil(get_lord_assets(lord, SHIP) / 2)
set_lord_assets(lord, SHIP, n)
end_immediate_event()