mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-11-27 21:48:21 +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>
17 lines
532 B
TypeScript
17 lines
532 B
TypeScript
import { getPokemonNameWithAffix } from "#app/messages";
|
|
import i18next from "i18next";
|
|
import { SummonPhase } from "./summon-phase";
|
|
import { globalScene } from "#app/global-scene";
|
|
|
|
export class SummonMissingPhase extends SummonPhase {
|
|
public readonly phaseName = "SummonMissingPhase";
|
|
preSummon(): void {
|
|
globalScene.ui.showText(
|
|
i18next.t("battle:sendOutPokemon", {
|
|
pokemonName: getPokemonNameWithAffix(this.getPokemon()),
|
|
}),
|
|
);
|
|
globalScene.time.delayedCall(250, () => this.summon());
|
|
}
|
|
}
|