summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-08-17 17:09:49 +0200
committerTor Andersson <tor@ccxvii.net>2023-08-22 21:38:42 +0200
commit57926abeb710b8311d67b0e0657b8a23f1058323 (patch)
treef794b7308c094b33948184406963aabcd6696219
parent89ee0b4262e89333e13a7a17604c816662c86158 (diff)
downloadtime-of-crisis-57926abeb710b8311d67b0e0657b8a23f1058323.tar.gz
Check enough MIP to move with Forced March.
Was only checking IP for Initiate Battle...
-rw-r--r--rules.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 680bf95..2855cf2 100644
--- a/rules.js
+++ b/rules.js
@@ -3541,11 +3541,13 @@ states.force_march = {
// Move Army
if (game.selected_general >= 0) {
- for (let to of ADJACENT[where]) {
- if (!is_sea(to)) {
- gen_action_region(to)
- if (can_enter_capital(to))
- gen_action_capital(to)
+ if (game.mip >= 1) {
+ for (let to of ADJACENT[where]) {
+ if (!is_sea(to)) {
+ gen_action_region(to)
+ if (can_enter_capital(to))
+ gen_action_capital(to)
+ }
}
}