mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Add bypass for DP rotom, skip splitbreed if chain doesn't have splitbreed
This commit is contained in:
parent
d8630b7cee
commit
4d3fd395e1
1 changed files with 4 additions and 1 deletions
|
@ -45,6 +45,9 @@ namespace PKHeX.Core
|
|||
yield break; // no other possible species
|
||||
|
||||
var o = EvoBase.GetBaseSpecies(chain, 1);
|
||||
if (o.Species == e.Species)
|
||||
yield break;
|
||||
|
||||
if (o.Species <= max && !NoHatchFromEggFormGen(o.Species, o.Form, ver))
|
||||
{
|
||||
yield return new EncounterEggSplit(o.Species, o.Form, lvl, gen, ver, e.Species);
|
||||
|
@ -71,7 +74,7 @@ namespace PKHeX.Core
|
|||
// Sanity check form for origin
|
||||
var gameInfo = GameData.GetPersonal(game);
|
||||
var entry = gameInfo.GetFormeEntry(species, form);
|
||||
return form >= entry.FormeCount;
|
||||
return form >= entry.FormeCount && !(species == (int)Species.Rotom && form <= 5);
|
||||
}
|
||||
|
||||
// Gen6+ update the origin game when hatched. Quick manip for X.Y<->A.O | S.M<->US.UM, ie X->A
|
||||
|
|
Loading…
Reference in a new issue