pokerogue/src/phases/summon-missing-phase.ts
2024-08-19 03:23:52 +01:00

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());
}
}