diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2023-06-02 00:37:15 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:13:09 +0100 |
commit | 94503d40f8cfd66d09cb13f79250927850d99602 (patch) | |
tree | d3e79c3057d5d4ac9eed3adfe26d055561cbb56b | |
parent | d2a919b98e3809d6a0f27c10ee9bb9ac61dbe542 (diff) | |
download | plantagenet-94503d40f8cfd66d09cb13f79250927850d99602.tar.gz |
leeward_battle_line
-rw-r--r-- | rules.js | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1394,12 +1394,10 @@ exports.setup = function (seed, scenario, options) { pieces: { locale: Array(lord_count).fill(NOWHERE), - service: Array(lord_count).fill(NEVER), assets: Array(lord_count).fill(0), forces: Array(lord_count).fill(0), routed: Array(lord_count).fill(0), capabilities: Array(lord_count << 1).fill(NOTHING), - besieged: 0, moved: 0, vassals: Array(vassal_count).fill(VASSAL_UNAVAILABLE), favour: [], @@ -1501,13 +1499,17 @@ function is_event_in_play(c) { return set_has(game.events, c) } -function is_ravens_rock_in_play() { - if (game.battle.round <= 1 && is_melee_step()) { - if (game.active === RUSSIANS) - return is_event_in_play(EVENT_RUSSIAN_RAVENS_ROCK) + +function is_leeward_battle_line_in_play () { + if (is_archery_step()) { + if (game.active === LANCASTER) + return is_event_in_play(EVENT_LANCASTER_LEEWARD_BATTLE_LINE) + } + if (game.active === YORK) + return is_event_in_play(EVENT_YORK_LEEWARD_BATTLE_LINE) } return false -} + function is_marsh_in_play() { if (game.battle.round <= 2) { |