summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-04-30 14:06:53 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitf93344417001a02d2f33311a433ddb4216f052c8 (patch)
tree9dcf8c7b43550217463bb1c6a90763ea9aa6ae2f /rules.js
parent1f18481409ebdbbec90f6dada0a22594e0290c4b (diff)
downloadwilderness-war-f93344417001a02d2f33311a433ddb4216f052c8.tar.gz
Don't allow picking up activated forces!
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
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);
});