diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-11-07 21:28:52 +0100 |
---|---|---|
committer | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-11-07 22:34:23 +0100 |
commit | 91ed031f500e18f13ac90a3f54b47fbc77d07bd3 (patch) | |
tree | 4211aebac5fc8bae8caa95c818a5ae7bca4cb211 | |
parent | e00b34d7eb354549e2229858a2daafee48a3d0b3 (diff) | |
download | plantagenet-91ed031f500e18f13ac90a3f54b47fbc77d07bd3.tar.gz |
fix Welshmen, Northmen and Southmen
Fix Welshmen, Northmen and Southmen to only apply during Tides of War. This fixes the behavior of Jack Cade when it checks domination during Muster.
-rw-r--r-- | rules.js | 6 | ||||
-rw-r--r-- | rules.ts | 6 |
2 files changed, 6 insertions, 6 deletions
@@ -1473,7 +1473,7 @@ function is_lancaster_dominating_north() { if (has_lancaster_favour(loc)) n++; let cap_lord = find_lord_with_capability_card(AOW_LANCASTER_NORTHMEN); - if (is_lancaster_lord(cap_lord) && is_north(get_lord_locale(cap_lord))) + if (!is_levy_phase() && is_lancaster_lord(cap_lord) && is_north(get_lord_locale(cap_lord))) return n >= 3; return n >= all_north_locales.length; } @@ -1483,7 +1483,7 @@ function is_york_dominating_south() { if (has_york_favour(loc)) n++; let cap_lord = find_lord_with_capability_card(AOW_YORK_SOUTHERNERS); - if (is_york_lord(cap_lord) && is_south(get_lord_locale(cap_lord))) + if (!is_levy_phase() && is_york_lord(cap_lord) && is_south(get_lord_locale(cap_lord))) return n >= 5; return n >= all_south_locales.length; } @@ -1500,7 +1500,7 @@ function is_york_dominating_wales() { if (has_york_favour(loc)) n++; let cap_lord = find_lord_with_capability_card(AOW_YORK_WELSHMEN); - if (is_york_lord(cap_lord) && is_wales(get_lord_locale(cap_lord))) + if (!is_levy_phase() && is_york_lord(cap_lord) && is_wales(get_lord_locale(cap_lord))) return n >= 3; return n >= all_wales_locales.length; } @@ -1946,7 +1946,7 @@ function is_lancaster_dominating_north() { if (has_lancaster_favour(loc)) n++ let cap_lord = find_lord_with_capability_card(AOW_LANCASTER_NORTHMEN) - if (is_lancaster_lord(cap_lord) && is_north(get_lord_locale(cap_lord))) + if (!is_levy_phase() && is_lancaster_lord(cap_lord) && is_north(get_lord_locale(cap_lord))) return n >= 3 return n >= all_north_locales.length } @@ -1957,7 +1957,7 @@ function is_york_dominating_south() { if (has_york_favour(loc)) n++ let cap_lord = find_lord_with_capability_card(AOW_YORK_SOUTHERNERS) - if (is_york_lord(cap_lord) && is_south(get_lord_locale(cap_lord))) + if (!is_levy_phase() && is_york_lord(cap_lord) && is_south(get_lord_locale(cap_lord))) return n >= 5 return n >= all_south_locales.length } @@ -1976,7 +1976,7 @@ function is_york_dominating_wales() { if (has_york_favour(loc)) n++ let cap_lord = find_lord_with_capability_card(AOW_YORK_WELSHMEN) - if (is_york_lord(cap_lord) && is_wales(get_lord_locale(cap_lord))) + if (!is_levy_phase() && is_york_lord(cap_lord) && is_wales(get_lord_locale(cap_lord))) return n >= 3 return n >= all_wales_locales.length } |