mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 14:59:26 +02:00
more fixes for consistency
This commit is contained in:
parent
0a98aa56f6
commit
5bc36ba5a9
@ -3596,12 +3596,10 @@ export class PostTurnStatStageChangeAbAttr extends PostTurnAbAttr {
|
|||||||
if (!simulated) {
|
if (!simulated) {
|
||||||
if (!pokemon.hasAbility(Abilities.SPEED_BOOST)) {
|
if (!pokemon.hasAbility(Abilities.SPEED_BOOST)) {
|
||||||
pokemon.scene.unshiftPhase(new StatStageChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, this.stats, this.stages));
|
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) {
|
} 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));
|
pokemon.scene.unshiftPhase(new StatStageChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, this.stats, this.stages));
|
||||||
this.showAbility = true;
|
|
||||||
} else {
|
} else {
|
||||||
this.showAbility = false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user