From 81765167835c1f547bc5e11a3259698b20e6b220 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 17 Jan 2023 16:00:28 +0100 Subject: SA without RD flank D, so no hit redirection. --- rules.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index af57c35..5685266 100644 --- a/rules.js +++ b/rules.js @@ -7862,17 +7862,21 @@ function for_each_target(fn) { fn(game.battle.array[target]) - // If strikers flank target, target must take all hits + // If any striker flanks target, target must take all hits for (let striker of game.battle.strikers) if (flanks_position(striker, target)) return + // SA without RD flank all D (target must take all hits) + if ((target === D1 || target === D2 || target === D3) && is_sa_without_rd()) + return + // If other lord flanks all strikers, he may take hits instead for (let flanker of ARRAY_FLANKS[target]) if (filled(flanker) && flanks_all_positions(flanker, game.battle.strikers)) fn(game.battle.array[flanker]) - // SA without RD flank all D equally closely + // SA without RD flank all D (and can thus take hits from A) if ((target === A1 || target === A2 || target === A3) && is_sa_without_rd()) { if (filled(SA1)) fn(game.battle.array[SA1]) if (filled(SA2)) fn(game.battle.array[SA2]) -- cgit v1.2.3