diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-03-27 13:40:07 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | 047b837cbd4893258fcdb2ed5c30f1e982f66e54 (patch) | |
tree | 0abca5bdb1b9d262c17b71f07269e778cc156e41 | |
parent | 86756fab7258c29c66b0622c69b743ba85d3d339 (diff) | |
download | wilderness-war-047b837cbd4893258fcdb2ed5c30f1e982f66e54.tar.gz |
Campaign can activate lone leaders.
-rw-r--r-- | rules.js | 29 |
1 files changed, 18 insertions, 11 deletions
@@ -2521,20 +2521,27 @@ states.designate_force = { if (can_pick_up) gen_action('pick_up_all'); - // Must be a force to proceed (leader + at least one unit) - if (count_units_in_force(commander) > 0) { - switch (game.force.reason) { - default: + switch (game.force.reason) { + case 'campaign_1': + case 'campaign_2': + // Campaign can activate lone leaders as well as forces. + gen_action_next(); + break; + case 'move': + // Must be a force to proceed (leader + at least one unit) + if (count_units_in_force(commander) > 0) gen_action_next(); - break; - case 'intercept': + break; + case 'intercept': + // Must be a force to proceed (leader + at least one unit) + if (count_units_in_force(commander) > 0) gen_action('intercept'); - break; - case 'avoid': + break; + case 'avoid': + // Must be a force to proceed (leader + at least one unit) + if (count_units_in_force(commander) > 0) gen_action('avoid'); - attempt_avoid_battle(); - break; - } + break; } }, |