diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-06 18:49:50 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-07 19:05:52 +0200 |
commit | b1f87e0acdaf88d7759f8293598d42edd303be65 (patch) | |
tree | ddaa0627df65d194d9758fcefc0ce0bf1c4ff028 /rules.js | |
parent | 593a5fb24156af994ab0a37b5bd3dc13a99c8e78 (diff) | |
download | time-of-crisis-b1f87e0acdaf88d7759f8293598d42edd303be65.tar.gz |
Fix Militia + Capital action layout.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |