mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
parent
2caa09f246
commit
72c08e5cfd
@ -303,18 +303,7 @@ async function summonSafariPokemon(scene: BattleScene) {
|
|||||||
scene.unshiftPhase(new SummonPhase(scene, 0, false));
|
scene.unshiftPhase(new SummonPhase(scene, 0, false));
|
||||||
|
|
||||||
encounter.setDialogueToken("pokemonName", getPokemonNameWithAffix(pokemon));
|
encounter.setDialogueToken("pokemonName", getPokemonNameWithAffix(pokemon));
|
||||||
// TODO: If we await this showEncounterText, then the text will display without
|
|
||||||
// the wild Pokemon on screen, but if we don't await it, then the text never
|
|
||||||
// shows up and the IV scanner breaks. For now, we place the IV scanner code
|
|
||||||
// separately so that at least the IV scanner works.
|
|
||||||
//
|
|
||||||
// showEncounterText(scene, getEncounterText(scene, "battle:singleWildAppeared") ?? "", null, 0, false)
|
|
||||||
// .then(() => {
|
|
||||||
// const ivScannerModifier = scene.findModifier(m => m instanceof IvScannerModifier);
|
|
||||||
// if (ivScannerModifier) {
|
|
||||||
// scene.pushPhase(new ScanIvsPhase(scene, pokemon.getBattlerIndex(), Math.min(ivScannerModifier.getStackCount() * 2, 6)));
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
const ivScannerModifier = scene.findModifier(m => m instanceof IvScannerModifier);
|
const ivScannerModifier = scene.findModifier(m => m instanceof IvScannerModifier);
|
||||||
if (ivScannerModifier) {
|
if (ivScannerModifier) {
|
||||||
scene.pushPhase(new ScanIvsPhase(scene, pokemon.getBattlerIndex(), Math.min(ivScannerModifier.getStackCount() * 2, 6)));
|
scene.pushPhase(new ScanIvsPhase(scene, pokemon.getBattlerIndex(), Math.min(ivScannerModifier.getStackCount() * 2, 6)));
|
||||||
|
Loading…
Reference in New Issue
Block a user