mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-08 18:25:53 -05:00
Only import gbera statics for Generation >0
GO requests would have Generation=-1 (no met location to differentiate 7/8).
This commit is contained in:
@@ -272,7 +272,7 @@ private static IEnumerable<EncounterStatic> GetStatic(PKM pk, IReadOnlyCollectio
|
||||
{
|
||||
var encounters = EncounterStaticGenerator.GetPossible(pk, chain);
|
||||
int gen = pk.Generation;
|
||||
if (gen <= 2)
|
||||
if ((uint)gen <= 2)
|
||||
encounters = encounters.Concat(EncounterStaticGenerator.GetPossibleGBGifts(pk, chain, gen == 2 ? GameVersion.C : GameVersion.RBY));
|
||||
foreach (var enc in encounters)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user