Fix for forms getting wrong hidden ability

This commit is contained in:
JappaWakka 2023-02-26 17:40:25 +01:00
parent 2f0cccb052
commit 9e991c88e4
1 changed files with 10 additions and 4 deletions

View File

@ -27,10 +27,7 @@
If Not parent1 Is Nothing And Not parent2 Is Nothing And EggID <> 0 Then
Dim p As Pokemon = Pokemon.GetPokemonByID(EggID)
p.Generate(1, True)
p.EggSteps = 1
p.SetCatchInfos(Item.GetItemByID(5), "obtained at")
p.CatchBall = Item.GetItemByID(GetEggPokeballID({parent1, parent2}.ToList()))
Dim OptionalAdditionalData As String = "xXx"
' Regional Form check
If Screen.Level.RegionalForm.Contains(CChar(",")) Then
@ -71,6 +68,15 @@
End If
End Select
If p.AdditionalData <> "" Then
OptionalAdditionalData = p.AdditionalData
End If
p.Generate(1, True, OptionalAdditionalData)
p.EggSteps = 1
p.SetCatchInfos(Item.GetItemByID(5), "obtained at")
p.CatchBall = Item.GetItemByID(GetEggPokeballID({parent1, parent2}.ToList()))
p.ReloadDefinitions()
p.CalculateStats()