mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 14:59:26 +02:00
removing uneccesary variables
This commit is contained in:
parent
76902c03de
commit
b1f155ff9c
@ -3580,22 +3580,15 @@ export class MoodyAbAttr extends PostTurnAbAttr {
|
||||
}
|
||||
|
||||
export class SpeedBoostAbAttr extends PostTurnAbAttr {
|
||||
private stats: BattleStat[];
|
||||
private stages: number;
|
||||
|
||||
constructor() {
|
||||
super(true);
|
||||
|
||||
this.stats = Array.isArray([ Stat.SPD ])
|
||||
? [ Stat.SPD ]
|
||||
: [ Stat.SPD ];
|
||||
this.stages = 1;
|
||||
}
|
||||
|
||||
applyPostTurn(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {
|
||||
if (!simulated) {
|
||||
if (!pokemon.turnData.switchedInThisTurn && !pokemon.turnData.failedRunAway) {
|
||||
pokemon.scene.unshiftPhase(new StatStageChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, this.stats, this.stages));
|
||||
pokemon.scene.unshiftPhase(new StatStageChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, [ Stat.SPD ], 1));
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user