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

View File

@ -622,14 +622,16 @@
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)
Dim PokeIndex As Integer = BattleScreen.OwnPokemonIndex For i = 0 To Core.Player.Pokemons.Count - 1
Dim _str As String = Core.Player.Pokemons(PokeIndex).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
Dim PokeIndex As Integer = BattleScreen.OwnPokemonIndex
If BattleScreen.FieldEffects.OwnMegaEvolved = False Then If BattleScreen.FieldEffects.OwnMegaEvolved = False Then
If Not Core.Player.Pokemons(PokeIndex).Item Is Nothing Then If Not Core.Player.Pokemons(PokeIndex).Item Is Nothing Then
If Core.Player.Pokemons(PokeIndex).Item.IsMegaStone = True Then If Core.Player.Pokemons(PokeIndex).Item.IsMegaStone = True Then