From 3535e2755451c78534919e9feb38653edbb7993d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 27 Oct 2024 00:32:38 +0200 Subject: fix errors in friend/enemy/control checks --- rules.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 34d82c8..5a8e9d8 100644 --- a/rules.js +++ b/rules.js @@ -498,10 +498,13 @@ function all_friendly_minor_powers(pow) { case P_FRANCE: case P_BAVARIA: case P_PRUSSIA: - case P_SAXONY: if (is_saxony_prussian()) return all_powers_bavaria_saxony return all_powers_bavaria + case P_SAXONY: + if (is_saxony_prussian()) + return all_powers_bavaria_saxony + return all_powers_saxony case P_PRAGMATIC: case P_AUSTRIA: if (is_saxony_austrian()) @@ -520,8 +523,8 @@ function all_enemy_powers(pow) { return all_powers_pragmatic_austria_saxony case P_SAXONY: if (is_saxony_prussian()) - return all_powers_france_bavaria_prussia - return all_powers_pragmatic_austria + return all_powers_pragmatic_austria + return all_powers_france_bavaria_prussia case P_PRAGMATIC: case P_AUSTRIA: if (is_saxony_austrian()) -- cgit v1.2.3