mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
[Bug] Fix rattled speed stat increase delay
This commit is contained in:
parent
fb6d6f5b69
commit
e8bc2fb736
@ -2130,7 +2130,12 @@ export class PostIntimidateStatStageChangeAbAttr extends AbAttr {
|
|||||||
|
|
||||||
override apply(pokemon: Pokemon, passive: boolean, simulated:boolean, cancelled: BooleanHolder, args: any[]): void {
|
override apply(pokemon: Pokemon, passive: boolean, simulated:boolean, cancelled: BooleanHolder, args: any[]): void {
|
||||||
if (!simulated) {
|
if (!simulated) {
|
||||||
globalScene.pushPhase(new StatStageChangePhase(pokemon.getBattlerIndex(), false, this.stats, this.stages));
|
const newStatStageChangePhase = new StatStageChangePhase(pokemon.getBattlerIndex(), false, this.stats, this.stages)
|
||||||
|
if(globalScene.findPhase(m => m instanceof MovePhase)){
|
||||||
|
globalScene.prependToPhase(newStatStageChangePhase, MovePhase)
|
||||||
|
}else {
|
||||||
|
globalScene.pushPhase(newStatStageChangePhase);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cancelled.value = this.overwrites;
|
cancelled.value = this.overwrites;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user