mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-21 12:35:59 +02:00
16 lines
544 B
TypeScript
16 lines
544 B
TypeScript
import BattleScene from "#app/battle-scene.js";
|
|
import { getPokemonNameWithAffix } from "#app/messages.js";
|
|
import i18next from "i18next";
|
|
import { SummonPhase } from "./summon-phase";
|
|
|
|
export class SummonMissingPhase extends SummonPhase {
|
|
constructor(scene: BattleScene, fieldIndex: integer) {
|
|
super(scene, fieldIndex);
|
|
}
|
|
|
|
preSummon(): void {
|
|
this.scene.ui.showText(i18next.t("battle:sendOutPokemon", { pokemonName: getPokemonNameWithAffix(this.getPokemon()) }));
|
|
this.scene.time.delayedCall(250, () => this.summon());
|
|
}
|
|
}
|