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
This commit is contained in:
Kurt
2019-12-06 19:31:18 -08:00
parent d24a09f7c9
commit d08e3a3f81

View File

@@ -136,11 +136,7 @@ private EvolutionTree(IReadOnlyList<byte[]> 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);