Fixed HatchEgg command adding 2 pokémon

This commit is contained in:
JappaWakka 2022-07-31 19:59:47 +02:00
parent 53c5d5ba5f
commit 0695ff6491
1 changed files with 6 additions and 3 deletions

View File

@ -863,10 +863,13 @@
End If
If Core.Player.Pokemons.Count - 1 >= Index Then
Pokemon = Core.Player.Pokemons(Index)
Core.Player.Pokemons.Remove(Pokemon)
End If
If Pokemon.IsEgg() = True Then
Screen.TextBox.Show("?")
SetScreen(New TransitionScreen(CType(CurrentScreen, OverworldScreen), New HatchEggScreen(CType(CurrentScreen, OverworldScreen), {Pokemon}.ToList, CanRename, Message), Color.White, False))
CanContinue = False
End If
Screen.TextBox.Show("?")
SetScreen(New TransitionScreen(CType(CurrentScreen, OverworldScreen), New HatchEggScreen(CType(CurrentScreen, OverworldScreen), {Pokemon}.ToList, CanRename, Message), Color.White, False))
CanContinue = False
End Select
IsReady = True