Added even extra condition

Now it wont show if you have a mega evolved pokemon in your team (just cosmetic purpose)
This commit is contained in:
Capt_Segis 2016-10-07 00:48:45 -05:00 committed by GitHub
parent 43ba440217
commit 7bf5c6fd5d
1 changed files with 9 additions and 7 deletions

View File

@ -622,14 +622,16 @@
End Sub
Private Sub MainMenuAddMegaEvolution(ByVal BattleScreen As BattleScreen, ByVal Index As Integer)
For i = 0 To Core.Player.Pokemons.Count - 1
Dim _str As String = Core.Player.Pokemons(i).AdditionalData
Select Case _str
Case "mega", "mega_x", "mega_y"
Exit Sub
Case Else
'do nothing
End Select
Next
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