mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 05:42:18 +02:00
Enhanced TSDoc
This commit is contained in:
parent
582d990db0
commit
11669dce67
@ -2282,6 +2282,7 @@ export class PostBiomeChangeTerrainChangeAbAttr extends PostBiomeChangeAbAttr {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggers just after a move is used either by the opponent or the player
|
* Triggers just after a move is used either by the opponent or the player
|
||||||
|
* @extends AbAttr
|
||||||
*/
|
*/
|
||||||
export class PostMoveUsedAbAttr extends AbAttr {
|
export class PostMoveUsedAbAttr extends AbAttr {
|
||||||
applyPostMoveUsed(pokemon: Pokemon, move: PokemonMove, source: Pokemon, targets: BattlerIndex[], args: any[]): boolean | Promise<boolean> {
|
applyPostMoveUsed(pokemon: Pokemon, move: PokemonMove, source: Pokemon, targets: BattlerIndex[], args: any[]): boolean | Promise<boolean> {
|
||||||
@ -2291,8 +2292,20 @@ export class PostMoveUsedAbAttr extends AbAttr {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggers after a dance move is used either by the opponent or the player
|
* Triggers after a dance move is used either by the opponent or the player
|
||||||
|
* @extends PostMoveUsedAbAttr
|
||||||
*/
|
*/
|
||||||
export class PostDancingMoveAbAttr extends PostMoveUsedAbAttr {
|
export class PostDancingMoveAbAttr extends PostMoveUsedAbAttr {
|
||||||
|
/**
|
||||||
|
* Resolves the Dancer ability by replicating the move used by the source of the dance
|
||||||
|
* either on the source itself or on the target of the dance
|
||||||
|
* @param dancer {@linkcode Pokemon} with Dancer ability
|
||||||
|
* @param move {@linkcode PokemonMove} Dancing move used by the source
|
||||||
|
* @param source {@linkcode Pokemon} that used the dancing move
|
||||||
|
* @param targets {@linkcode BattlerIndex}Targets of the dancing move
|
||||||
|
* @param args N/A
|
||||||
|
*
|
||||||
|
* @return true if the Dancer ability was resolved
|
||||||
|
*/
|
||||||
applyPostMoveUsed(dancer: Pokemon, move: PokemonMove, source: Pokemon, targets: BattlerIndex[], args: any[]): boolean | Promise<boolean> {
|
applyPostMoveUsed(dancer: Pokemon, move: PokemonMove, source: Pokemon, targets: BattlerIndex[], args: any[]): boolean | Promise<boolean> {
|
||||||
// The move to replicate cannot come from the Dancer
|
// The move to replicate cannot come from the Dancer
|
||||||
if (source.getBattlerIndex() !== dancer.getBattlerIndex()) {
|
if (source.getBattlerIndex() !== dancer.getBattlerIndex()) {
|
||||||
@ -2312,9 +2325,9 @@ export class PostDancingMoveAbAttr extends PostMoveUsedAbAttr {
|
|||||||
/**
|
/**
|
||||||
* Get the correct targets of Dancer ability
|
* Get the correct targets of Dancer ability
|
||||||
*
|
*
|
||||||
* @param dancer Pokemon with Dancer ability
|
* @param dancer {@linkcode Pokemon} Pokemon with Dancer ability
|
||||||
* @param source Source of the dancing move
|
* @param source {@linkcode Pokemon} Source of the dancing move
|
||||||
* @param targets Targets of the dancing move
|
* @param targets {@linkcode BattlerIndex} Targets of the dancing move
|
||||||
*/
|
*/
|
||||||
getTarget(dancer: Pokemon, source: Pokemon, targets: BattlerIndex[]) : BattlerIndex[] {
|
getTarget(dancer: Pokemon, source: Pokemon, targets: BattlerIndex[]) : BattlerIndex[] {
|
||||||
if (dancer.isPlayer())
|
if (dancer.isPlayer())
|
||||||
|
Loading…
Reference in New Issue
Block a user