diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-09-01 20:08:10 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-09-01 20:08:10 +0200 |
commit | 7abb6cd6ec409da23a469582f670a09b965f74cd (patch) | |
tree | 4f5ffe541ad68c4564b9e205047938b8bcc1d787 | |
parent | 896a7ae3e029172cb77d95989d21883206fca79d (diff) | |
download | table-battles-7abb6cd6ec409da23a469582f670a09b965f74cd.tar.gz |
Fix missing self hits from extra abilities (S28 Johnson).
This case was dropped accidentally when refactoring the effect texts...
-rw-r--r-- | rules.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2943,6 +2943,9 @@ function update_attack1(is_absorb = false) { if (card_has_rule(target, "suffer_1_less_1_max")) game.hits = Math.max(0, Math.min(1, game.hits - 1)) + + if (game.self2) + game.self += game.self2 } // Update hits and self hits for defensive abilities that redirect or steal hits. |