From 82796150409cb2a381554f3f42fd1490dc6b5afe Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 2 Feb 2023 15:12:18 -0800 Subject: [PATCH] Fix bit wrap met location matching Use ulong bitmask not u32 --- .../Legality/Encounters/EncounterStatic/EncounterStatic4.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic4.cs b/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic4.cs index 7997c3887..6a6ba7155 100644 --- a/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic4.cs +++ b/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic4.cs @@ -124,7 +124,7 @@ public sealed record EncounterStatic4(GameVersion Version) : EncounterStatic(Ver var value = location - first; if ((uint)value >= 64) return false; - return (permit & (1u << value)) != 0; + return (permit & (1ul << value)) != 0; } public static bool IsMatchRoamerLocation(uint permit, int location, int first)