diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-17 16:00:28 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | 81765167835c1f547bc5e11a3259698b20e6b220 (patch) | |
tree | 80200917709ac61a8965d5271348814df8a573b7 | |
parent | fbafa84adfb0c4b024dd3bd00f026fb4c2457213 (diff) | |
download | nevsky-81765167835c1f547bc5e11a3259698b20e6b220.tar.gz |
SA without RD flank D, so no hit redirection.
-rw-r--r-- | rules.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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]) |