From f93344417001a02d2f33311a433ddb4216f052c8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 30 Apr 2022 14:06:53 +0200 Subject: Don't allow picking up activated forces! --- rules.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 37f4757..782088f 100644 --- a/rules.js +++ b/rules.js @@ -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); }); -- cgit v1.2.3