[Misc] Restore info comment that was accidentally removed (#4674)
This commit is contained in:
parent
d5fee37868
commit
d92d63e81f
|
@ -304,6 +304,11 @@ async function summonSafariPokemon(scene: BattleScene) {
|
||||||
|
|
||||||
encounter.setDialogueToken("pokemonName", getPokemonNameWithAffix(pokemon));
|
encounter.setDialogueToken("pokemonName", getPokemonNameWithAffix(pokemon));
|
||||||
|
|
||||||
|
// TODO: If we await showEncounterText here, 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.
|
||||||
|
|
||||||
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