diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-05 19:47:36 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | e0a7c43aac55aff47325366dfc810eb843a8ff0e (patch) | |
tree | aba2382963b0147e745f726f66e85109923b702a | |
parent | 989b724efe131bbe8d6d2d58e3979a4800cd3340 (diff) | |
download | nevsky-e0a7c43aac55aff47325366dfc810eb843a8ff0e.tar.gz |
Fix Field Organ.
-rw-r--r-- | rules.js | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -6390,6 +6390,13 @@ function could_play_card(c) { return true } +function has_lords_in_battle() { + for (let p = 0; p < 12; ++p) + if (is_friendly_lord(game.battle.array[p])) + return true + return has_reserves() +} + function can_play_battle_events() { if (!game.battle.storm) { if (game.active === TEUTONS) { @@ -6429,7 +6436,7 @@ function can_play_battle_events() { // Battle or Storm if (game.active === TEUTONS) { if (could_play_card(EVENT_TEUTONIC_FIELD_ORGAN)) - if (has_reserves()) + if (has_lords_in_battle()) return true } @@ -6444,7 +6451,8 @@ function prompt_battle_events() { if (!is_winter()) gen_action_card_if_held(EVENT_TEUTONIC_BRIDGE) } - gen_action_card_if_held(EVENT_TEUTONIC_FIELD_ORGAN) + if (has_lords_in_battle()) + gen_action_card_if_held(EVENT_TEUTONIC_FIELD_ORGAN) } if (game.active === RUSSIANS) { |