mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 07:50:32 +00:00
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:
parent
7629d3f887
commit
1f600f3518
1 changed files with 7 additions and 2 deletions
|
@ -227,8 +227,13 @@ namespace PKHeX.Core
|
|||
pk.SetForm(Set.Form);
|
||||
pk.SetGender(Set.Gender);
|
||||
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.SetRandomEC();
|
||||
|
||||
|
|
Loading…
Reference in a new issue