From d5f791847368a934c7faa7214a0d9b5bd36394ae Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Fri, 25 Apr 2025 11:32:47 -0400 Subject: No double attack support --- rules.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index ec25027..812fec8 100644 --- a/rules.js +++ b/rules.js @@ -1298,7 +1298,7 @@ function goto_attack_space() { set_add(game.cmd.selected, p) }) for_each_movable(game.cmd.attacker, p => { - if (piece_space(p) === game.cmd.where) { + if (piece_space(p) === game.cmd.where && !set_has(game.cmd.pieces, p)) { set_add(game.cmd.selected, p) set_add(game.cmd.pieces, p) game.cmd.n_units[0] += 1 @@ -1307,7 +1307,6 @@ function goto_attack_space() { } }) game.cmd.n_adj = (game.current === VE) ? 1 : 2 - if (has_valid_support_attackers(game.cmd.where, game.cmd.attacker)) game.state = "attack_adjacent_support" else -- cgit v1.2.3