From 94c1c923e48108b8a3fb1505d28f0cf2ad137c89 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:55:14 -0700 Subject: [PATCH] [Bug] Default 0.5 heal ratio in `HitHealAttr` (#3414) --- 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 2117d832d74..827c3716d9b 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1686,7 +1686,7 @@ export class HitHealAttr extends MoveEffectAttr { constructor(healRatio?: number | null, healStat?: Stat) { super(true, MoveEffectTrigger.HIT); - this.healRatio = healRatio!; // TODO: is this bang correct? + this.healRatio = healRatio ?? 0.5; this.healStat = healStat ?? null; } /**