[Bug] Default 0.5 heal ratio in `HitHealAttr` (#3414)
This commit is contained in:
parent
597d8f566a
commit
94c1c923e4
|
@ -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;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue