Replace `.find()` with `[0]`
This commit is contained in:
parent
899d51ebbf
commit
da34c6e5f2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue