pokerogue/src/phases/summon-missing-phase.ts
Sirz Benjie 408b66f913
[Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495)
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-09 14:13:25 -07:00

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