diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-27 00:32:38 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-27 00:32:38 +0200 |
commit | 3535e2755451c78534919e9feb38653edbb7993d (patch) | |
tree | 89517ec31e933555d964b5abbc1429db547f4b0b /rules.js | |
parent | 6c52bbb9e39c111dee0c1d5f845876496c54c42f (diff) | |
download | maria-3535e2755451c78534919e9feb38653edbb7993d.tar.gz |
fix errors in friend/enemy/control checks
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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()) |