Update src/data/move.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
schmidtc1 2024-12-29 10:06:32 -05:00 committed by GitHub
parent ab0d149ef4
commit c403574b74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6514,12 +6514,12 @@ export class RandomMoveAttr extends CallMoveAttr {
/**
* User calls a random moveId
* @param {Pokemon} user Pokemon that used the move and will call a random move
* @param {Pokemon} target Pokemon that will be targeted by the random move (if single target)
* @param {Move} move Move being used
* @param {any[]} args Unused
* @returns {Promise<boolean>}
* Invalid moves are indicated by what is passed in to invalidMoves: @constant {invalidMetronomeMoves}
*
* Invalid moves are indicated by what is passed in to invalidMoves: {@linkcode invalidMetronomeMoves}
* @param user Pokemon that used the move and will call a random move
* @param target Pokemon that will be targeted by the random move (if single target)
* @param move Move being used
* @param args Unused
*/
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise<boolean> {
const moveIds = Utils.getEnumValues(Moves).map(m => !this.invalidMoves.includes(m) && !allMoves[m].name.endsWith(" (N)") ? m : Moves.NONE);