summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-09-01 20:08:10 +0200
committerTor Andersson <tor@ccxvii.net>2024-09-01 20:08:10 +0200
commit7abb6cd6ec409da23a469582f670a09b965f74cd (patch)
tree4f5ffe541ad68c4564b9e205047938b8bcc1d787
parent896a7ae3e029172cb77d95989d21883206fca79d (diff)
downloadtable-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.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index a23148d..2461128 100644
--- a/rules.js
+++ b/rules.js
@@ -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.