diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-01 00:47:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-01 00:47:00 +0200 |
commit | 765ee0358f26152baf84d44e827ae6b4bd059968 (patch) | |
tree | 7b3953c08279b2712145a900cc4deedf3542cb9f | |
parent | c3030ac79778bd38c3dc4574d7b9ddc15fcfa70f (diff) | |
download | plantagenet-765ee0358f26152baf84d44e827ae6b4bd059968.tar.gz |
II.Y rule for foreign haven in II as well
-rw-r--r-- | rules.ts | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -7955,7 +7955,7 @@ states.death_check = { if (set_has(game.battle.fled, game.who)) { if (die >= 5) { logi("L" + game.who + " 5-6 B" + die) - remove_lord(game.who) + kill_lord(game.who) } else { logi("L" + game.who + " 5-6 W" + die) disband_lord(game.who) @@ -7963,7 +7963,7 @@ states.death_check = { } else { if (die >= 3) { logi("L" + game.who + " 3-6 B" + die) - remove_lord(game.who) + kill_lord(game.who) } else { logi("L" + game.who + " 3-6 W" + die) disband_lord(game.who) @@ -7984,6 +7984,14 @@ states.death_check = { card: action_held_event_at_death_check, } +function kill_lord(lord: Lord) { + if (game.scenario === SCENARIO_II) { + if (lord === LORD_WARWICK_L && game.battle.attacker === YORK) + foreign_haven_shift_lords() + } + remove_lord(lord) +} + // === DEATH CHECK CAPABILITY: BLOODY THOU ART === function is_bloody_thou_art_triggered() { |