diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-04-30 14:06:53 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | f93344417001a02d2f33311a433ddb4216f052c8 (patch) | |
tree | 9dcf8c7b43550217463bb1c6a90763ea9aa6ae2f /rules.js | |
parent | 1f18481409ebdbbec90f6dada0a22594e0290c4b (diff) | |
download | wilderness-war-f93344417001a02d2f33311a433ddb4216f052c8.tar.gz |
Don't allow picking up activated forces!
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2507,6 +2507,8 @@ states.designate_force = { for_each_friendly_leader_in_node(where, p => { if (game.force.reason === 'avoid' && is_piece_inside(p)) return; // continue + if (game.activation && game.activation.includes(p)) + return; // continue if (p !== commander && leader_command(p) <= leader_command(commander)) { can_pick_up = true; gen_action_piece(p); @@ -2576,6 +2578,8 @@ states.designate_force = { for_each_friendly_leader_in_node(where, p => { if (game.force.reason === 'avoid' && is_piece_inside(p)) return; // continue + if (game.activation && game.activation.includes(p)) + return; // continue if (p !== commander && leader_command(p) <= leader_command(commander)) move_piece_to(p, box); }); |