summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-01 00:47:00 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-01 00:47:00 +0200
commit765ee0358f26152baf84d44e827ae6b4bd059968 (patch)
tree7b3953c08279b2712145a900cc4deedf3542cb9f
parentc3030ac79778bd38c3dc4574d7b9ddc15fcfa70f (diff)
downloadplantagenet-765ee0358f26152baf84d44e827ae6b4bd059968.tar.gz
II.Y rule for foreign haven in II as well
-rw-r--r--rules.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/rules.ts b/rules.ts
index 91caaca..792daf6 100644
--- a/rules.ts
+++ b/rules.ts
@@ -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() {