mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 17:57:12 -05:00
Handle evolutions-in-eggs case for past gen (2/3)
Closes #1989 Thanks @iiippppk ! (eggs don't always come at level 1, past gen has level 5)
This commit is contained in:
@@ -1363,10 +1363,10 @@ internal static IList<DexLevel> GetValidPreEvolutions(PKM pkm, int maxspeciesori
|
||||
{
|
||||
if (lvl < 0)
|
||||
lvl = pkm.CurrentLevel;
|
||||
if (lvl == 1 && pkm.IsEgg)
|
||||
if (pkm.IsEgg && !skipChecks)
|
||||
return new List<DexLevel>
|
||||
{
|
||||
new DexLevel { Species = pkm.Species, Level = 1, MinLevel = 1 },
|
||||
new DexLevel { Species = pkm.Species, Level = lvl, MinLevel = lvl },
|
||||
};
|
||||
if (pkm.Species == 292 && lvl >= 20 && (!pkm.HasOriginalMetLocation || pkm.Met_Level + 1 <= lvl))
|
||||
return new List<DexLevel>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user