mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-26 19:49:22 +01:00
* Move phase types out of phase interceptor * Create isXPhase method and add properties to each phase * Replace instanceof phase with isXPhase * Fix missing union types for phaseName * Update doc comment in phase.ts * Fix incomplete comment in encounter-phase * Make phaseName as public and fix more uses * Move phaseName property declaration before constructor in move anim phase Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Rename isXPhase to is --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
19 lines
546 B
TypeScript
19 lines
546 B
TypeScript
import { globalScene } from "#app/global-scene";
|
|
import type { BattlerIndex } from "#app/battle";
|
|
import { PokemonPhase } from "./pokemon-phase";
|
|
|
|
export class ShinySparklePhase extends PokemonPhase {
|
|
public readonly phaseName = "ShinySparklePhase";
|
|
// 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());
|
|
}
|
|
}
|