pokerogue/src/phases/shiny-sparkle-phase.ts

17 lines
421 B
TypeScript
Raw Normal View History

import BattleScene from "#app/battle-scene";
import { BattlerIndex } from "#app/battle";
2024-08-19 03:23:52 +01:00
import { PokemonPhase } from "./pokemon-phase";
export class ShinySparklePhase extends PokemonPhase {
constructor(scene: BattleScene, battlerIndex: BattlerIndex) {
super(scene, battlerIndex);
}
start() {
super.start();
this.getPokemon().sparkle();
this.scene.time.delayedCall(1000, () => this.end());
}
}