summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-09 14:18:23 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-09 14:18:23 +0200
commit2a8eba95d94651b130cdf6d922514f189309c121 (patch)
treec9c853285fc8e77ae31643939367f29d480c441c /rules.js
parente551a58b7fe81ffc551340ade778e79da3650a88 (diff)
downloadtime-of-crisis-2a8eba95d94651b130cdf6d922514f189309c121.tar.gz
Forced March only once with militia.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 9101394..7f1513d 100644
--- a/rules.js
+++ b/rules.js
@@ -3369,7 +3369,7 @@ function can_play_force_march() {
return true
}
for (let i = 0; i < 12; ++i) {
- if (has_lone_militia(i) && has_militia_battled(i) && is_own_province(i))
+ if (has_lone_militia(i) && has_militia_battled(i) && !has_militia_force_marched(i) && is_own_province(i))
return true
}
}
@@ -3391,7 +3391,7 @@ states.force_march_who = {
gen_action_general(id)
}
for (let i = 0; i < 12; ++i) {
- if (has_lone_militia(i) && has_militia_battled(i) && is_own_province(i))
+ if (has_lone_militia(i) && has_militia_battled(i) && !has_militia_force_marched(i) && is_own_province(i))
gen_action_militia(i)
}
},