Update EggVerifier.cs

This commit is contained in:
Kurt
2026-08-01 23:46:18 -05:00
parent 106291863f
commit 97d64975fe

View File

@@ -82,7 +82,10 @@ private void VerifyEggBreedingChain(LegalityAnalysis data, PKM pk, IEncounterEgg
{
// Check if we have any moves that are as a result of breeding chain.
Span<ushort> moves = stackalloc ushort[4];
pk.GetMoves(moves);
if (egg.Generation >= 6)
pk.GetRelearnMoves(moves);
else
pk.GetMoves(moves);
var personal = GameData.GetPersonal(egg.Version)[egg.Species, egg.Form];
var includeInheritedLevelUp = personal.OnlyFemale
&& !Breeding.IsGenderSpeciesDetermination(egg.Species);