Disable gen2 chain clamp

not sure of the implications, but fixes #2031
might have to rework this method to clean up the optional params if
things are misbehaving
This commit is contained in:
Kurt
2018-06-24 08:02:22 -07:00
parent e29cf2a903
commit 09c96558ea
3 changed files with 1 additions and 1 deletions

View File

@@ -251,7 +251,7 @@ internal static List<EvoCriteria> GetValidPreEvolutions(PKM pkm, int maxspecieso
new EvoCriteria { Species = 290, Level = pkm.GenNumber < 5 ? lvl : lvl-1, MinLevel = 1 }
// Shedinja spawns after evolving, which is after level up moves were prompted. Not for future generations.
};
if (maxspeciesorigin == -1 && pkm.InhabitedGeneration(2) && pkm.GenNumber == 1)
if (maxspeciesorigin == -1 && pkm.InhabitedGeneration(2) && pkm.Format <= 2 && pkm.GenNumber == 1)
maxspeciesorigin = MaxSpeciesID_2;
int tree = maxspeciesorigin == MaxSpeciesID_2 ? 2 : pkm.Format;