Update EncounterMovesetGenerator.cs

This commit is contained in:
Kurt 2020-11-19 07:33:35 -08:00
parent 0af0c05bac
commit 9d8b528437

View file

@ -140,8 +140,6 @@ namespace PKHeX.Core
public static IEnumerable<IEncounterable> GenerateVersionEncounters(PKM pk, IEnumerable<int> moves, GameVersion version) public static IEnumerable<IEncounterable> GenerateVersionEncounters(PKM pk, IEnumerable<int> moves, GameVersion version)
{ {
pk.Version = (int)version; pk.Version = (int)version;
if (version == GameVersion.GO && pk.Format >= 8)
pk.Met_Location = Locations.GO8; // needed to yield the GO->HOME table instead of GO->LGPE. HOME is a superset of LGPE's possible encounters.
var et = EvolutionTree.GetEvolutionTree(pk.Format); var et = EvolutionTree.GetEvolutionTree(pk.Format);
var chain = et.GetValidPreEvolutions(pk, maxLevel: 100, skipChecks: true); var chain = et.GetValidPreEvolutions(pk, maxLevel: 100, skipChecks: true);
int[] needs = GetNeededMoves(pk, moves, chain); int[] needs = GetNeededMoves(pk, moves, chain);