mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-11 22:29:52 -05:00
Update EncounterMovesetGenerator.cs
This commit is contained in:
parent
86096201e8
commit
93ff841a1d
|
|
@ -140,6 +140,8 @@ public static IEnumerable<IEncounterable> GenerateEncounters(PKM pk, int[]? move
|
|||
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 New Issue
Block a user