mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 13:16:57 -05:00
Merge pull request #1418 from javierhimura/master
Fix generation 1/2 encounters from issue #1417
This commit is contained in:
@@ -99,7 +99,7 @@ private static IEnumerable<GBEncounterData> GenerateRawEncounters12(PKM pkm, Gam
|
||||
deferred.Add(t);
|
||||
continue;
|
||||
}
|
||||
yield return new GBEncounterData(pkm, gen, t, game);
|
||||
yield return new GBEncounterData(pkm, gen, t, t.Version);
|
||||
}
|
||||
foreach (var s in GetValidStaticEncounter(pkm, game).Where(z => species.Contains(z.Species)))
|
||||
{
|
||||
@@ -119,13 +119,13 @@ private static IEnumerable<GBEncounterData> GenerateRawEncounters12(PKM pkm, Gam
|
||||
}
|
||||
if (game == GameVersion.GSC && !s.EggEncounter && s.Version == GameVersion.C && !pkm.HasOriginalMetLocation)
|
||||
continue;
|
||||
yield return new GBEncounterData(pkm, gen, s, game);
|
||||
yield return new GBEncounterData(pkm, gen, s, s.Version);
|
||||
}
|
||||
foreach (var e in GetValidWildEncounters(pkm, game))
|
||||
foreach (var e in GetValidWildEncounters(pkm, game).OfType<EncounterSlot1>())
|
||||
{
|
||||
if (!species.Contains(e.Species))
|
||||
continue;
|
||||
yield return new GBEncounterData(pkm, gen, e, game);
|
||||
yield return new GBEncounterData(pkm, gen, e, e.Version);
|
||||
}
|
||||
|
||||
if (game == GameVersion.GSC || game == GameVersion.C)
|
||||
|
||||
Reference in New Issue
Block a user