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:
Kurt
2018-06-10 19:38:06 -07:00
parent c9181963f2
commit c9d0811281
5 changed files with 2 additions and 2 deletions

View File

@@ -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>