Fix Mega forms not resetting after battle
This commit is contained in:
parent
f3777e3130
commit
4f1a940d9e
|
@ -595,7 +595,7 @@
|
|||
BattleScreen.BattleQuery.Add(New PlaySoundQueryObject("Battle\Effects\MegaEvolution", False))
|
||||
End If
|
||||
BattleScreen.BattleQuery.Add(New ToggleEntityQueryObject(own, ToggleEntityQueryObject.BattleEntities.OwnPokemon, PokemonForms.GetOverworldSpriteName(p), 0, 1, -1, -1))
|
||||
BattleScreen.BattleQuery.Add(New TextQueryObject(_base & " has Mega Evolved into " & p.GetName(True)))
|
||||
BattleScreen.BattleQuery.Add(New TextQueryObject(_base & " has Mega Evolved into " & p.GetName(True) & "!"))
|
||||
TriggerAbilityEffect(BattleScreen, own)
|
||||
End If
|
||||
End Sub
|
||||
|
|
|
@ -1247,12 +1247,12 @@ nextIndex:
|
|||
'Level.StopOffsetMapUpdate()
|
||||
|
||||
Dim str As String = ""
|
||||
'Call the EndBattle function of the abilities and Reverts battle only Pokemon formes.
|
||||
'Call the EndBattle function of the abilities and Reverts battle-only Pokemon forms.
|
||||
For Each p As Pokemon In Core.Player.Pokemons
|
||||
str = p.AdditionalData.ToLower()
|
||||
Select Case str
|
||||
Case "mega", "mega_x", "mega_y", "primal", "blade"
|
||||
p.AdditionalData = PokemonForms.GetInitialAdditionalData(p)
|
||||
p.AdditionalData = ""
|
||||
p.ReloadDefinitions()
|
||||
p.CalculateStats()
|
||||
If str <> "blade" Then
|
||||
|
|
Loading…
Reference in New Issue