mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 05:22:44 +02:00
20 lines
544 B
TypeScript
20 lines
544 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 {
|
|
constructor(fieldIndex: number) {
|
|
super(fieldIndex);
|
|
}
|
|
|
|
preSummon(): void {
|
|
globalScene.ui.showText(
|
|
i18next.t("battle:sendOutPokemon", {
|
|
pokemonName: getPokemonNameWithAffix(this.getPokemon()),
|
|
}),
|
|
);
|
|
globalScene.time.delayedCall(250, () => this.summon());
|
|
}
|
|
}
|