From 7559907f7f5b1f75644475a6f1020fc4f2ab725b Mon Sep 17 00:00:00 2001 From: Benjamin Odom Date: Mon, 13 May 2024 04:55:41 -0500 Subject: [PATCH] Update ability.ts --- src/data/ability.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index d81009c91c4..04e08fb2fd6 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -1290,8 +1290,15 @@ export class PostSummonAllyHealAbAttr extends PostSummonAbAttr { } } +/** + * Resets an ally's temporary stat boots to zero with no regard to + * whether this is a positive or negative change + * @param pokemon The {@link Pokemon} with this {@link AbAttr} + * @param passive N/A + * @param args N/A + * @returns if the move was successful + */ export class PostSummonClearAllyStatsAbAttr extends PostSummonAbAttr { - constructor() { super(); } @@ -1299,11 +1306,10 @@ export class PostSummonClearAllyStatsAbAttr extends PostSummonAbAttr { applyPostSummon(pokemon: Pokemon, passive: boolean, args: any[]): boolean { const target = pokemon.getAlly(); if (target?.isActive(true)) { - for (let s = 0; s < target.summonData.battleStats.length; s++) target.summonData.battleStats[s] = 0; - target.scene.queueMessage(getPokemonMessage(target, `'s stat changes\nwere eliminated!`)); + target.scene.queueMessage(getPokemonMessage(target, `'s stat changes\nwere removed!`)); return true; }