Fix getBaseGamesIsEgg, there is some cases when crystal origin can be discarted

This commit is contained in:
javierhimura 2017-03-26 18:47:26 +02:00
parent ca63bf2e51
commit d9d138d2a5

View file

@ -2119,6 +2119,14 @@ namespace PKHeX.Core
case 1:
case 2:
// Every egg move from Gold/Silver is included in Crystal
if (pkm.Format != 2)
return GameVersion.C;
if (pkm.HasOriginalMetLocation)
return GameVersion.C;
if (pkm.Species > 151 && !Legal.FutureEvolutionsGen1.Contains(pkm.Species))
return GameVersion.GS;
return GameVersion.C;
case 3:
switch ((GameVersion)pkm.Version)