mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Document RemoveAllSubstitutesAttr
This commit is contained in:
parent
f86218dc0e
commit
ddbb7d679f
@ -4531,11 +4531,25 @@ export class FaintCountdownAttr extends AddBattlerTagAttr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attribute to remove all Substitutes from the field.
|
||||||
|
* @extends MoveEffectAttr
|
||||||
|
* @see {@link https://bulbapedia.bulbagarden.net/wiki/Tidy_Up_(move) | Tidy Up}
|
||||||
|
* @see {@linkcode SubstituteTag}
|
||||||
|
*/
|
||||||
export class RemoveAllSubstitutesAttr extends MoveEffectAttr {
|
export class RemoveAllSubstitutesAttr extends MoveEffectAttr {
|
||||||
constructor() {
|
constructor() {
|
||||||
super(true);
|
super(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove's the Substitute Doll effect from all active Pokemon on the field
|
||||||
|
* @param user {@linkcode Pokemon} the Pokemon using this move
|
||||||
|
* @param target n/a
|
||||||
|
* @param move {@linkcode Move} the move applying this effect
|
||||||
|
* @param args n/a
|
||||||
|
* @returns `true` if the effect successfully applies
|
||||||
|
*/
|
||||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||||
if (!super.apply(user, target, move, args)) {
|
if (!super.apply(user, target, move, args)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user