mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
Fix gen2 egg species get
feraligatr isn't in gen8 evolution table yet Closes #2937
This commit is contained in:
parent
455a787ee4
commit
53e2432818
1 changed files with 4 additions and 1 deletions
|
@ -189,7 +189,10 @@ namespace PKHeX.Core
|
|||
var canBeEgg = GetCanBeEgg(pkm);
|
||||
if (canBeEgg)
|
||||
{
|
||||
int species = EvoBase.GetBaseSpecies(pkm, generation: pkm.Format == 1 ? 2 : -1, maxSpeciesOrigin: MaxSpeciesID_2).Species;
|
||||
var baseID = chain[chain.Count - 1];
|
||||
if ((baseID.Species >= MaxSpeciesID_2 || baseID.Form != 0) && chain.Count != 1)
|
||||
baseID = chain[chain.Count - 2];
|
||||
int species = baseID.Species;
|
||||
if (ParseSettings.AllowGen2Crystal(pkm))
|
||||
yield return new EncounterEgg(species, 0, 5, 2, GameVersion.C); // gen2 egg
|
||||
yield return new EncounterEgg(species, 0, 5, 2, GameVersion.GS); // gen2 egg
|
||||
|
|
Loading…
Reference in a new issue