diff --git a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs index defa89dee..8f9091252 100644 --- a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs +++ b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs @@ -67,7 +67,7 @@ private static EvoCriteria[][] GetChainAll(PKM pkm, IEncounterable Encounter, IE // If the pokemon origin is illegal (e.g. Gen3 Infernape) the list will be emptied -- species lineage did not exist at any evolution stage. while (mostEvolved.Species > maxspeciesgen) { - if (queue.Count == 1) + if (queue.Count == 0) return GensEvoChains; if (mostEvolved.RequiresLvlUp) { @@ -93,7 +93,7 @@ private static EvoCriteria[][] GetChainAll(PKM pkm, IEncounterable Encounter, IE { if (g < 7 && pkm.Format >= 7 && mostEvolved.Form > 0) { - if (queue.Count == 1) + if (queue.Count == 0) break; mostEvolved = queue.Dequeue(); } diff --git a/Tests/PKHeX.Tests/Legality/Legal/Generation 2/251 - Celebi - FDB063C95344.pk7 b/Tests/PKHeX.Tests/Legality/Legal/Generation 2/251 - Celebi - FDB063C95344.pk7 new file mode 100644 index 000000000..c659db26e Binary files /dev/null and b/Tests/PKHeX.Tests/Legality/Legal/Generation 2/251 - Celebi - FDB063C95344.pk7 differ diff --git a/Tests/PKHeX.Tests/Legality/Legal/Generation 2/251_-_CELEBI_-_1EE8.pk2 b/Tests/PKHeX.Tests/Legality/Legal/Generation 2/251_-_CELEBI_-_1EE8.pk2 new file mode 100644 index 000000000..193563ce6 Binary files /dev/null and b/Tests/PKHeX.Tests/Legality/Legal/Generation 2/251_-_CELEBI_-_1EE8.pk2 differ