pokerogue/src/phases/summon-missing-phase.ts
NightKev 1e6ceb5581
[Misc] Clean up various phases (part 1) (#4797)
* Clean up various phases

Remove redundant code, utilize default parameters,
clean up some leftover `strict-null` `TODO`s,
replace `integer` with `number`

* Replace `* as Utils` imports with named imports

* Apply Biome
2025-04-06 03:10:52 +00:00

16 lines
480 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 {
preSummon(): void {
globalScene.ui.showText(
i18next.t("battle:sendOutPokemon", {
pokemonName: getPokemonNameWithAffix(this.getPokemon()),
}),
);
globalScene.time.delayedCall(250, () => this.summon());
}
}