mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 05:37:22 -05:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user