[Bug] Fix healing modifying the HP stat instead of the Pokemon's HP (#3406)

This commit is contained in:
NightKev 2024-08-07 11:14:02 -07:00 committed by GitHub
parent b0ab207f84
commit 3698f13f49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.