mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 13:59:27 +02:00
Add docs from missed conversations
This commit is contained in:
parent
013c6b2c15
commit
499a7eb344
@ -6541,10 +6541,12 @@ export class RandomMoveAttr extends CallMoveAttr {
|
|||||||
/**
|
/**
|
||||||
* Attribute used to call a random move in the user or party's moveset.
|
* Attribute used to call a random move in the user or party's moveset.
|
||||||
* Used for {@linkcode Moves.ASSIST} and {@linkcode Moves.SLEEP_TALK}
|
* Used for {@linkcode Moves.ASSIST} and {@linkcode Moves.SLEEP_TALK}
|
||||||
* @extends CallMoveAttr to use the apply function on a moveId
|
*
|
||||||
|
* Fails if the user has no callable moves.
|
||||||
|
*
|
||||||
|
* Invalid moves are indicated by what is passed in to invalidMoves: {@linkcode invalidAssistMoves} or {@linkcode invalidSleepTalkMoves}
|
||||||
|
* @extends RandomMoveAttr to use the callMove function on a moveId
|
||||||
* @see {@linkcode getCondition} for move selection
|
* @see {@linkcode getCondition} for move selection
|
||||||
* Fails if the user has no callable moves
|
|
||||||
* Invalid moves are indicated by what is passed in to invalidMoves: {@constant invalidAssistMoves} or {@constant invalidSleepTalkMoves}
|
|
||||||
*/
|
*/
|
||||||
export class RandomMovesetMoveAttr extends CallMoveAttr {
|
export class RandomMovesetMoveAttr extends CallMoveAttr {
|
||||||
private includeParty: boolean;
|
private includeParty: boolean;
|
||||||
@ -6557,11 +6559,10 @@ export class RandomMovesetMoveAttr extends CallMoveAttr {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* User calls a random moveId selected in {@linkcode getCondition}
|
* User calls a random moveId selected in {@linkcode getCondition}
|
||||||
* @param {Pokemon} user Pokemon that used the move and will call a random move
|
* @param 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 target Pokemon that will be targeted by the random move (if single target)
|
||||||
* @param {Move} move Move being used
|
* @param move Move being used
|
||||||
* @param {any[]} args Unused
|
* @param args Unused
|
||||||
* @returns {Promise<boolean>}
|
|
||||||
*/
|
*/
|
||||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise<boolean> {
|
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise<boolean> {
|
||||||
return super.apply(user, target, allMoves[this.moveId], args);
|
return super.apply(user, target, allMoves[this.moveId], args);
|
||||||
|
Loading…
Reference in New Issue
Block a user