mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
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:
parent
916ac84a98
commit
3e711acd05
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user