From 7971badaf11b11630abc841ee06c427f4c53c8be Mon Sep 17 00:00:00 2001 From: Benjamin Odom Date: Mon, 13 May 2024 04:26:04 -0500 Subject: [PATCH] Update move.ts --- src/data/move.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index 1ab2137fb5e..39e2731f39f 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -751,7 +751,7 @@ export class HealAttr extends MoveEffectAttr { addHealPhase(target: Pokemon, healRatio: number) { target.scene.unshiftPhase(new PokemonHealPhase(target.scene, target.getBattlerIndex(), - Math.max(Math.floor(target.getMaxHp() * healRatio), 1), getPokemonMessage(target, ' regained\nhealth!'), true, !this.showAnim)); + Math.max(Math.floor(target.getMaxHp() * healRatio), 1), getPokemonMessage(target, ' \nhad its HP restored.'), true, !this.showAnim)); } getTargetBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer { @@ -834,11 +834,28 @@ export class SandHealAttr extends WeatherHealAttr { } } +/** + * Heals the target by either {@link normalHealRatio} or {@link boostedHealRatio} + * depending on the evaluation of {@link condition} + * @see {@link apply} + * @param user The Pokemon using this move + * @param target The target Pokemon of this move + * @param move This move + * @param args N/A + * @returns if the move was successful + */ export class BoostHealAttr extends HealAttr { private normalHealRatio?: number; private boostedHealRatio?: number; private condition?: MoveConditionFunc; + /** + * @param normalHealRatio Healing received when {@link condition} is false + * @param boostedHealRatio Healing received when {@link condition} is true + * @param showAnim Should a healing animation be showed? + * @param selfTarget Should the move target the user? + * @param condition The condition to check against when boosting the healing value + */ constructor(normalHealRatio?: number, boostedHealRatio?: number, showAnim?: boolean, selfTarget?: boolean, condition?: MoveConditionFunc) { super(normalHealRatio, showAnim, selfTarget); this.normalHealRatio = normalHealRatio;