mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-18 21:39:28 +02:00
Update src/data/move.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
ab0d149ef4
commit
c403574b74
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user