summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
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