Added extra condition to MainMenuAddMegaEvolution

This commit is contained in:
Capt_Segis 2016-10-07 00:39:50 -05:00 committed by GitHub
parent 062cdf307e
commit 43ba440217
1 changed files with 8 additions and 1 deletions

View File

@ -623,6 +623,13 @@
Private Sub MainMenuAddMegaEvolution(ByVal BattleScreen As BattleScreen, ByVal Index As Integer)
Dim PokeIndex As Integer = BattleScreen.OwnPokemonIndex
Dim _str As String = Core.Player.Pokemons(PokeIndex).AdditionalData
Select Case _str
Case "mega", "mega_x", "mega_y"
Exit Sub
Case Else
'do nothing
End Select
If BattleScreen.FieldEffects.OwnMegaEvolved = False Then
If Not Core.Player.Pokemons(PokeIndex).Item Is Nothing Then
If Core.Player.Pokemons(PokeIndex).Item.IsMegaStone = True Then
@ -966,4 +973,4 @@
End Class
End Namespace
End Namespace