From f78e017e479da2daddfe5f13238b8a5b0c5591c6 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 6 Sep 2017 20:03:36 -0700 Subject: [PATCH] Fix GSC table loading Was ignoring G/S slots (only had crystal) thus some special G/S encounters (underleveled examples being Magmar lvl14) were not recognized. Thanks HaxAras! https://projectpokemon.org/forums/forums/topic/41579-pokemon-silver-under-leveled-pokemon-flagged-as-illegal/ --- PKHeX.Core/Legality/Encounters/Data/Encounters2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Encounters/Data/Encounters2.cs b/PKHeX.Core/Legality/Encounters/Data/Encounters2.cs index c844422b0..f957cd652 100644 --- a/PKHeX.Core/Legality/Encounters/Data/Encounters2.cs +++ b/PKHeX.Core/Legality/Encounters/Data/Encounters2.cs @@ -34,7 +34,7 @@ private static EncounterArea[] GetTables2(GameVersion Version) var f = EncounterArea.GetArray2_F(Util.GetBinaryResource("encounter_gsc_f.pkl")); EncounterArea[] Slots = new EncounterArea[0]; - if (GameVersion.GS.Contains(Version)) + if (Version.Contains(GameVersion.GS)) Slots = GetSlots_GS(f); if (Version.Contains(GameVersion.C)) Slots = AddExtraTableSlots(Slots, GetSlots_C(f));