diff --git a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs index a981e5c71..7326f509d 100644 --- a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs +++ b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs @@ -256,7 +256,7 @@ internal static List GetValidPreEvolutions(PKM pkm, int maxspecieso if (maxspeciesorigin == -1 && pkm.InhabitedGeneration(2) && pkm.Format <= 2 && pkm.GenNumber == 1) maxspeciesorigin = MaxSpeciesID_2; - int tree = maxspeciesorigin == MaxSpeciesID_2 ? 2 : pkm.Format; + int tree = pkm.Format <= 2 ? 2 : pkm.Format; var et = EvolutionTree.GetEvolutionTree(pkm, tree); return et.GetValidPreEvolutions(pkm, maxLevel: lvl, maxSpeciesOrigin: maxspeciesorigin, skipChecks: skipChecks, minLevel: minLevel); } diff --git a/Tests/PKHeX.Core.Tests/Legality/Legal/Generation 7 Transfer/466 - Electivire - FF102D8B375B.pk7 b/Tests/PKHeX.Core.Tests/Legality/Legal/Generation 7 Transfer/466 - Electivire - FF102D8B375B.pk7 new file mode 100644 index 000000000..8b09aff28 Binary files /dev/null and b/Tests/PKHeX.Core.Tests/Legality/Legal/Generation 7 Transfer/466 - Electivire - FF102D8B375B.pk7 differ