From 3698f13f49d2dc94c3e496c5cc1b2ae2b750b62e Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:14:02 -0700 Subject: [PATCH] [Bug] Fix healing modifying the HP stat instead of the Pokemon's HP (#3406) --- 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 b5ca217a73e..1fe4af0db06 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1650,7 +1650,7 @@ export class HitHealAttr extends MoveEffectAttr { super(true, MoveEffectTrigger.HIT); this.healRatio = healRatio!; // TODO: is this bang correct? - this.healStat = healStat!; // TODO: is this bang correct? + this.healStat = healStat ?? null; } /** * Heals the user the determined amount and possibly displays a message about regaining health.