diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-28 19:47:57 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-28 19:48:22 +0200 |
commit | 09edccb021028932d85684007dde3563f6fa31d6 (patch) | |
tree | b2c98492c36891a974869d8150c4ea71c028ca93 | |
parent | 6acd44aff10c4431ed377a85880566b39549272f (diff) | |
download | plantagenet-09edccb021028932d85684007dde3563f6fa31d6.tar.gz |
fix vanguard
-rw-r--r-- | rules.ts | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6710,6 +6710,7 @@ function is_vanguard_in_battle() { states.vanguard = { prompt() { view.prompt = "Vanguard: Norfolk may choose his engagement to be the only one." + view.who = find_lord_with_capability_card(AOW_YORK_VANGUARD) view.actions.vanguard = 1 view.actions.pass = 1 }, @@ -6724,10 +6725,10 @@ states.vanguard = { return false }) - goto_determine_engagements() + goto_select_engagement() }, pass() { - goto_determine_engagements() + goto_select_engagement() }, } @@ -6998,7 +6999,7 @@ function determine_engagements() { function goto_determine_engagements() { game.battle.engagements = determine_engagements() - if (game.battle.round === 1 && is_vanguard_in_battle()) { + if (game.battle.round === 1 && game.battle.engagements.length > 1 && is_vanguard_in_battle()) { set_active(YORK) game.state = "vanguard" } else { |