Removed useless super.xyz calls from functions

This commit is contained in:
Bertie690 2025-06-03 13:14:18 -04:00
parent f0259b2a24
commit 2e9a8f6f5a
2 changed files with 1 additions and 9 deletions

View File

@ -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;
};
}

View File

@ -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