more fixes for consistency

This commit is contained in:
PrabbyDD 2024-10-17 15:54:10 -07:00
parent 0a98aa56f6
commit 5bc36ba5a9

View File

@ -3596,12 +3596,10 @@ export class PostTurnStatStageChangeAbAttr extends PostTurnAbAttr {
if (!simulated) {
if (!pokemon.hasAbility(Abilities.SPEED_BOOST)) {
pokemon.scene.unshiftPhase(new StatStageChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, this.stats, this.stages));
this.showAbility = true;
} else if (pokemon.hasAbility(Abilities.SPEED_BOOST) && !pokemon.turnData.switchedInThisTurn && !pokemon.turnData.failedRunAway) {
pokemon.scene.unshiftPhase(new StatStageChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, this.stats, this.stages));
this.showAbility = true;
} else {
this.showAbility = false;
return false;
}
}
return true;