From 0e9d0886a9f9a7efda7bf329ee20f3e0ef4b2895 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 3 Jul 2021 11:35:28 -0700 Subject: [PATCH] Fix BCC if-else slot loading Not all slots were being loaded. Thanks jazpersona ! https://projectpokemon.org/home/forums/topic/57375-pkhex-new-update-legality-errors-contribution-page/?do=findComment&comment=267494 --- PKHeX.Core/Legality/Areas/EncounterArea2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Areas/EncounterArea2.cs b/PKHeX.Core/Legality/Areas/EncounterArea2.cs index 7318e4c42..827eebbb1 100644 --- a/PKHeX.Core/Legality/Areas/EncounterArea2.cs +++ b/PKHeX.Core/Legality/Areas/EncounterArea2.cs @@ -35,7 +35,7 @@ private EncounterArea2(byte[] data, GameVersion game) : base(game) var type = (Type = (SlotType)data[2]) & (SlotType)0xF; var rate = data[3]; - if (type > SlotType.Surf) // Not Grass/Surf + if (type is > SlotType.Surf and not SlotType.BugContest) // Not Grass/Surf { const int size = 5; int count = (data.Length - 4) / size;