From 1f600f351830e1c5934a1fe15e8150bcbae7c640 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 2 Jan 2021 19:58:25 -0800 Subject: [PATCH] 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. --- PKHeX.Core/Editing/CommonEdits.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/Editing/CommonEdits.cs b/PKHeX.Core/Editing/CommonEdits.cs index d25b31cf3..1587ed284 100644 --- a/PKHeX.Core/Editing/CommonEdits.cs +++ b/PKHeX.Core/Editing/CommonEdits.cs @@ -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();