mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-30 23:49:13 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user