mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Fixed Mega Evolution not reverting when the pokemon faints
This commit is contained in:
parent
096fc52ec8
commit
b9c39c07ae
@ -2331,6 +2331,20 @@
|
|||||||
message = p.GetDisplayName() & " fainted!"
|
message = p.GetDisplayName() & " fainted!"
|
||||||
End If
|
End If
|
||||||
BattleScreen.BattleQuery.Add(New TextQueryObject(message))
|
BattleScreen.BattleQuery.Add(New TextQueryObject(message))
|
||||||
|
|
||||||
|
Dim str = p.AdditionalData.ToLower()
|
||||||
|
Select Case str
|
||||||
|
Case "mega", "mega_x", "mega_y", "primal", "blade"
|
||||||
|
p.AdditionalData = PokemonForms.GetInitialAdditionalData(p)
|
||||||
|
p.ReloadDefinitions()
|
||||||
|
p.CalculateStats()
|
||||||
|
If str <> "blade" Then
|
||||||
|
p.RestoreAbility() 'currently only used for mega evolutions
|
||||||
|
End If
|
||||||
|
End Select
|
||||||
|
If Not p.Ability Is Nothing Then
|
||||||
|
p.Ability.EndBattle(p)
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "Applystuff"
|
#Region "Applystuff"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user