From 8d3c334e509db3b7bd80923aec8ef99ae4606052 Mon Sep 17 00:00:00 2001 From: Benjamin Odom Date: Wed, 29 May 2024 10:54:33 -0500 Subject: [PATCH] Fix move.ts Errors (#1564) --- src/data/move.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 3fca2869ea3..1cb78b836bc 100755 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -144,8 +144,8 @@ export default class Move implements Localizable { localize(): void { const i18nKey = Moves[this.id].split("_").filter(f => f).map((f, i) => i ? `${f[0]}${f.slice(1).toLowerCase()}` : f.toLowerCase()).join("") as unknown as string; - this.name = this.id ? `${i18next.t(`move:${i18nKey}.name`).toString()}${this.nameAppend}` : ""; - this.effect = this.id ? `${i18next.t(`move:${i18nKey}.effect`).toString()}${this.nameAppend}` : ""; + this.name = this.id ? `${i18next.t(`move:${i18nKey}.name`)}${this.nameAppend}` : ""; + this.effect = this.id ? `${i18next.t(`move:${i18nKey}.effect`)}${this.nameAppend}` : ""; } getAttrs(attrType: { new(...args: any[]): MoveAttr }): MoveAttr[] { @@ -2011,10 +2011,10 @@ export class PostVictoryStatChangeAttr extends MoveAttr { } applyPostVictory(user: Pokemon, target: Pokemon, move: Move): void { if (this.condition && !this.condition(user, target, move)) { - return false; + return; } const statChangeAttr = new StatChangeAttr(this.stats, this.levels, this.showMessage); - statChangeAttr.apply(user, target, move); + statChangeAttr.apply(user, target, move, undefined); } }