[Bug] Default 0.5 heal ratio in `HitHealAttr` (#3414)

This commit is contained in:
NightKev 2024-08-07 12:55:14 -07:00 committed by GitHub
parent 597d8f566a
commit 94c1c923e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1686,7 +1686,7 @@ export class HitHealAttr extends MoveEffectAttr {
constructor(healRatio?: number | null, healStat?: Stat) { constructor(healRatio?: number | null, healStat?: Stat) {
super(true, MoveEffectTrigger.HIT); super(true, MoveEffectTrigger.HIT);
this.healRatio = healRatio!; // TODO: is this bang correct? this.healRatio = healRatio ?? 0.5;
this.healStat = healStat ?? null; this.healStat = healStat ?? null;
} }
/** /**