mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-20 14:55:20 -05:00
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:
@@ -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;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user