mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Update EncounterMovesetGenerator.cs
This commit is contained in:
parent
0af0c05bac
commit
9d8b528437
1 changed files with 0 additions and 2 deletions
|
@ -140,8 +140,6 @@ namespace PKHeX.Core
|
|||
public static IEnumerable<IEncounterable> GenerateVersionEncounters(PKM pk, IEnumerable<int> moves, GameVersion 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 chain = et.GetValidPreEvolutions(pk, maxLevel: 100, skipChecks: true);
|
||||
int[] needs = GetNeededMoves(pk, moves, chain);
|
||||
|
|
Loading…
Reference in a new issue