From d45a8afef2f67df7c82a9305921ca25c4ebdd188 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 9 Jul 2018 21:26:45 -0700 Subject: [PATCH] Remove erroneous chain trim logic latter half of the method seems to do everything that is required Closes #2048 --- PKHeX.Core/Legality/Evolutions/EvolutionChain.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs index 830ad8cc6..228526466 100644 --- a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs +++ b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs @@ -139,22 +139,6 @@ private static List[] GetChainAll(PKM pkm, IEncounterable Encounter private static void TrimVC1Transfer(PKM pkm, IList> GensEvoChains) { - // Remove Gen2 evolutions from Gen7 and future if a Gen1 did not exist in that format. - for (int fgen = 7; fgen < GensEvoChains.Count; fgen++) - { - var chain = GensEvoChains[fgen]; - int g1Index = -1; - for (int i = 0; i < chain.Count; i++) - { - if (chain[i].Species > MaxSpeciesID_1) - continue; - g1Index = i; - break; - } - int count = chain.Count; - for (int i = g1Index + 1; i < count; i++) - GensEvoChains[fgen].RemoveAt(i); - } if (GensEvoChains[7].All(z => z.Species > MaxSpeciesID_1)) GensEvoChains[pkm.Format] = NONE; // need a Gen1 present; invalidate the chain. }