diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-02-13 19:30:37 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-02-13 19:30:37 +0100 |
commit | 830ee426e2b13cdd9ed9d5e999f06901b50f5576 (patch) | |
tree | f8324b352bc167253eca7a2025472b74d783ec44 | |
parent | 3d95fe0862e2e9eb622c78bf93506904407435b5 (diff) | |
download | nevsky-830ee426e2b13cdd9ed9d5e999f06901b50f5576.tar.gz |
Fix function arity errors.
-rw-r--r-- | rules.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |