From 94503d40f8cfd66d09cb13f79250927850d99602 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Fri, 2 Jun 2023 00:37:15 +0200 Subject: leeward_battle_line --- rules.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/rules.js b/rules.js index 855fb5c..b2512e1 100644 --- a/rules.js +++ b/rules.js @@ -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) { -- cgit v1.2.3