From d08e3a3f81521570b04e56c1e4f5fda7fa090a89 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 6 Dec 2019 19:31:18 -0800 Subject: [PATCH] Fix form change evolution linking GetDestinationForm for gen7+ is fine gen7 and gen8 use the "form" argument as the destination form; -1 means don't change espurr-F just gets forced to 1 in gen7 since it's -1 Closes #2564 ty @iiippppk --- PKHeX.Core/Legality/Evolutions/EvolutionTree.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/PKHeX.Core/Legality/Evolutions/EvolutionTree.cs b/PKHeX.Core/Legality/Evolutions/EvolutionTree.cs index dce14176d..93b0a2c09 100644 --- a/PKHeX.Core/Legality/Evolutions/EvolutionTree.cs +++ b/PKHeX.Core/Legality/Evolutions/EvolutionTree.cs @@ -136,11 +136,7 @@ private EvolutionTree(IReadOnlyList data, GameVersion game, PersonalTabl { var dSpecies = evo.Species; if (dSpecies == 0) - continue; - - bool any = evo.Form == EvolutionMethod.AnyForm; - if (!any && evo.Form != sForm) - continue; + break; var dForm = evo.GetDestinationForm(sForm); var key = GetLookupKey(dSpecies, dForm);