Replace `.find()` with `[0]`

This commit is contained in:
NightKev 2024-09-06 02:29:18 -07:00
parent 899d51ebbf
commit da34c6e5f2
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ export class MovePhase extends BattlePhase {
pokemonNameWithAffix: getPokemonNameWithAffix(this.pokemon),
moveName: this.move.getName()
}), 500);
applyMoveAttrs(PreMoveMessageAttr, this.pokemon, this.pokemon.getOpponents().find(() => true) ?? null, this.move.getMove());
applyMoveAttrs(PreMoveMessageAttr, this.pokemon, this.pokemon.getOpponents()[0], this.move.getMove());
}
showFailedText(failedText?: string): void {