Fix encounter find for passed egg moves

https://projectpokemon.org/home/forums/topic/56188-encounter-database-froslass-error/
This commit is contained in:
Kurt 2020-02-08 13:36:37 -08:00
parent fe092ce043
commit e9e1e5e166

View File

@ -137,7 +137,7 @@ private static int[] GetNeededMoves(PKM pk, IEnumerable<int> moves, IReadOnlyLis
private static IEnumerable<int> GetMovesForGeneration(PKM pk, IReadOnlyList<EvoCriteria> dl, int generation)
{
IEnumerable<int> moves = Legal.GetValidMoves(pk, dl, generation);
if (generation >= 8)
if (pk.GenNumber >= 8)
{
// Shared Egg Moves via daycare
// Any egg move can be obtained