summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-06 18:49:50 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 19:05:52 +0200
commitb1f87e0acdaf88d7759f8293598d42edd303be65 (patch)
treeddaa0627df65d194d9758fcefc0ce0bf1c4ff028 /rules.js
parent593a5fb24156af994ab0a37b5bd3dc13a99c8e78 (diff)
downloadtime-of-crisis-b1f87e0acdaf88d7759f8293598d42edd303be65.tar.gz
Fix Militia + Capital action layout.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 28638e1..fa9306d 100644
--- a/rules.js
+++ b/rules.js
@@ -1773,7 +1773,7 @@ states.take_actions = {
// Select Militia (if can Disperse Mobs or Initiate Battle)
let loc = get_governor_location(id)
if (is_province(loc) && has_lone_militia(loc) && loc !== game.selected_militia) {
- if (game.mip >= 1 && (get_mobs(loc)) || can_militia_initiate_battle(loc))
+ if (game.mip >= 1 && (get_mobs(loc) || can_militia_initiate_battle(loc)))
gen_action_militia(loc)
}
}
@@ -1908,7 +1908,8 @@ states.take_actions = {
// Militia Actions
if (game.selected_militia >= 0) {
view.actions.disperse_mob = 0
- if (game.mip >= 1)
+
+ if (game.mip >= 1 && get_mobs(where))
view.actions.disperse_mob = 1
// Initiate Battle with Militia not stacked with General