mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Removed useless super.xyz
calls from functions
This commit is contained in:
parent
f0259b2a24
commit
2e9a8f6f5a
@ -5472,10 +5472,6 @@ export class AddBattlerTagAttr extends MoveEffectAttr {
|
||||
this.failOnOverlap = !!failOnOverlap;
|
||||
}
|
||||
|
||||
canApply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||
return super.canApply(user, target, move, args);
|
||||
}
|
||||
|
||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||
if (!super.apply(user, target, move, args)) {
|
||||
return false;
|
||||
@ -6829,7 +6825,7 @@ export class RandomMovesetMoveAttr extends CallMoveAttr {
|
||||
return false;
|
||||
}
|
||||
|
||||
this.moveId = moves[user.randBattleSeedInt(moves.length)]!.moveId;
|
||||
this.moveId = moves[user.randBattleSeedInt(moves.length)].moveId;
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
@ -1091,10 +1091,6 @@ export class PokemonIncrementingStatModifier extends PokemonHeldItemModifier {
|
||||
return new PokemonIncrementingStatModifier(this.type, this.pokemonId, this.stackCount);
|
||||
}
|
||||
|
||||
getArgs(): any[] {
|
||||
return super.getArgs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the {@linkcode PokemonIncrementingStatModifier} should be applied to the {@linkcode Pokemon}.
|
||||
* @param pokemon The {@linkcode Pokemon} that holds the item
|
||||
|
Loading…
Reference in New Issue
Block a user