mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 07:44:31 +02:00
Ensure that the menu button reset to index 0 after mega evolve.
This commit is contained in:
parent
36010dfa46
commit
7cce88e66f
@ -622,13 +622,17 @@
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub MainMenuAddMegaEvolution(ByVal BattleScreen As BattleScreen, ByVal Index As Integer)
|
Private Sub MainMenuAddMegaEvolution(ByVal BattleScreen As BattleScreen, ByVal Index As Integer)
|
||||||
|
If _mainMenuIndex >= 3 Then
|
||||||
|
_mainMenuIndex = 0
|
||||||
|
End If
|
||||||
|
|
||||||
For i = 0 To Core.Player.Pokemons.Count - 1
|
For i = 0 To Core.Player.Pokemons.Count - 1
|
||||||
Dim _str As String = Core.Player.Pokemons(i).AdditionalData
|
Dim _str As String = Core.Player.Pokemons(i).AdditionalData
|
||||||
Select Case _str
|
Select Case _str
|
||||||
Case "mega", "mega_x", "mega_y"
|
Case "mega", "mega_x", "mega_y"
|
||||||
Exit Sub
|
Exit Sub
|
||||||
Case Else
|
Case Else
|
||||||
'do nothing
|
'do nothing
|
||||||
End Select
|
End Select
|
||||||
Next
|
Next
|
||||||
Dim PokeIndex As Integer = BattleScreen.OwnPokemonIndex
|
Dim PokeIndex As Integer = BattleScreen.OwnPokemonIndex
|
||||||
|
Loading…
x
Reference in New Issue
Block a user