summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-27 00:32:38 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-27 00:32:38 +0200
commit3535e2755451c78534919e9feb38653edbb7993d (patch)
tree89517ec31e933555d964b5abbc1429db547f4b0b /rules.js
parent6c52bbb9e39c111dee0c1d5f845876496c54c42f (diff)
downloadmaria-3535e2755451c78534919e9feb38653edbb7993d.tar.gz
fix errors in friend/enemy/control checks
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files 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())