Fix Gen2 Shiny ShowdownSet import

SetNature loops by changing the PID which doesn't exist; there's no nature or abilities in gen1/2 so just skip these two methods completely.
This commit is contained in:
Kurt 2021-01-02 19:58:25 -08:00
parent 7629d3f887
commit 1f600f3518

View file

@ -227,8 +227,13 @@ namespace PKHeX.Core
pk.SetForm(Set.Form); pk.SetForm(Set.Form);
pk.SetGender(Set.Gender); pk.SetGender(Set.Gender);
pk.SetMaximumPPUps(Set.Moves); pk.SetMaximumPPUps(Set.Moves);
pk.SetAbility(Set.Ability);
pk.SetNature(Set.Nature); if (pk.Format >= 3)
{
pk.SetAbility(Set.Ability);
pk.SetNature(Set.Nature);
}
pk.SetIsShiny(Set.Shiny); pk.SetIsShiny(Set.Shiny);
pk.SetRandomEC(); pk.SetRandomEC();