mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-30 07:56:07 +01:00
* Clean up various phases Remove redundant code, utilize default parameters, clean up some leftover `strict-null` `TODO`s, replace `integer` with `number` * Replace `* as Utils` imports with named imports * Apply Biome
18 lines
495 B
TypeScript
18 lines
495 B
TypeScript
import { globalScene } from "#app/global-scene";
|
|
import type { BattlerIndex } from "#app/battle";
|
|
import { PokemonPhase } from "./pokemon-phase";
|
|
|
|
export class ShinySparklePhase extends PokemonPhase {
|
|
// biome-ignore lint/complexity/noUselessConstructor: This makes `battlerIndex` required
|
|
constructor(battlerIndex: BattlerIndex) {
|
|
super(battlerIndex);
|
|
}
|
|
|
|
start() {
|
|
super.start();
|
|
|
|
this.getPokemon().sparkle();
|
|
globalScene.time.delayedCall(1000, () => this.end());
|
|
}
|
|
}
|