Disallow egg moves in suggestions for cxd/gg encs

https://projectpokemon.org/home/forums/topic/48547-remove-eggmoves-from-green-learnables-move-in-lets-go/
This commit is contained in:
Kurt 2018-11-20 13:38:05 -08:00
parent 916ac84a98
commit 3e711acd05

View File

@ -11,6 +11,10 @@ internal static int[] GetEggMoves(PKM pkm, int species, int formnum, GameVersion
int gen = pkm.Format <= 2 || pkm.VC ? 2 : pkm.GenNumber;
if (!pkm.InhabitedGeneration(gen, species) || (pkm.PersonalInfo.Gender == 255 && !FixedGenderFromBiGender.Contains(species)))
return Array.Empty<int>();
if (pkm.Version == 15 || pkm.GG)
return Array.Empty<int>();
if (version == GameVersion.Any)
version = (GameVersion)pkm.Version;
return GetEggMoves(gen, species, formnum, version);