From 8a0eaa000912dc09fc3dc2fafb60c41d74e122b4 Mon Sep 17 00:00:00 2001 From: td76099 <85713900+td76099@users.noreply.github.com> Date: Sat, 8 Jun 2024 23:53:03 -0400 Subject: [PATCH] [Bug] Fixing multi-hit drain moves so they heal based on individual hit and not total turn damage (#1974) --- src/data/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index d9c52803538..96961959a44 100755 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1467,7 +1467,7 @@ export class HitHealAttr extends MoveEffectAttr { message = i18next.t("battle:drainMessage", {pokemonName: target.name}); } else { // Default healing formula used by draining moves like Absorb, Draining Kiss, Bitter Blade, etc. - healAmount = Math.max(Math.floor(user.turnData.damageDealt * this.healRatio), 1); + healAmount = Math.max(Math.floor(user.turnData.currDamageDealt * this.healRatio), 1); message = i18next.t("battle:regainHealth", {pokemonName: user.name}); } if (reverseDrain) {