summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-02-13 19:30:37 +0100
committerTor Andersson <tor@ccxvii.net>2024-02-13 19:30:37 +0100
commit830ee426e2b13cdd9ed9d5e999f06901b50f5576 (patch)
treef8324b352bc167253eca7a2025472b74d783ec44
parent3d95fe0862e2e9eb622c78bf93506904407435b5 (diff)
downloadnevsky-830ee426e2b13cdd9ed9d5e999f06901b50f5576.tar.gz
Fix function arity errors.
-rw-r--r--rules.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 4c9e45e..2858176 100644
--- a/rules.js
+++ b/rules.js
@@ -3727,7 +3727,7 @@ states.muster_capability = {
},
card(c) {
if (data.cards[c].this_lord) {
- if (can_add_lord_capability(game.who, c)) {
+ if (can_add_lord_capability(game.who)) {
add_lord_capability(game.who, c)
} else {
game.what = c
@@ -9214,7 +9214,7 @@ function action_assign_hits(lord, type) {
}
} else {
logi(`${FORCE_TYPE_NAME[type]} removed`)
- remove_serf(lord, type)
+ remove_serf(lord)
}
if (game.battle.xhits)
@@ -9370,7 +9370,7 @@ states.sack = {
},
lord(lord) {
transfer_assets_except_ships(lord)
- if (can_ransom_lord_battle(lord)) {
+ if (can_ransom_lord_battle()) {
goto_ransom(lord)
} else {
disband_lord(lord, true)
@@ -9718,7 +9718,7 @@ states.battle_remove = {
},
lord(lord) {
transfer_assets_except_ships(lord)
- if (can_ransom_lord_battle(lord)) {
+ if (can_ransom_lord_battle()) {
goto_ransom(lord)
} else {
disband_lord(lord, true)
@@ -9885,7 +9885,7 @@ states.battle_losses_remove = {
// 4.5.2 Attackers losing a Storm do not give up spoils.
if (!(game.battle.storm && game.active === game.battle.attacker))
transfer_assets_except_ships(lord)
- if (can_ransom_lord_battle(lord)) {
+ if (can_ransom_lord_battle()) {
goto_ransom(lord)
} else {
disband_lord(lord, true)