From 2bdee8c87d429d0eefe14cc741ab1bdfaacbe36e Mon Sep 17 00:00:00 2001 From: sora10pls <17801814+sora10pls@users.noreply.github.com> Date: Sun, 14 May 2023 15:16:31 -0400 Subject: [PATCH] Permit Unknown Dungeon/Secret Base hatch locations --- PKHeX.Core/Legality/Encounters/Verifiers/EggHatchLocation6.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/Legality/Encounters/Verifiers/EggHatchLocation6.cs b/PKHeX.Core/Legality/Encounters/Verifiers/EggHatchLocation6.cs index 6d64c08b9..b01bf0754 100644 --- a/PKHeX.Core/Legality/Encounters/Verifiers/EggHatchLocation6.cs +++ b/PKHeX.Core/Legality/Encounters/Verifiers/EggHatchLocation6.cs @@ -7,7 +7,7 @@ public static bool IsValidMet6XY(int location) const int min = 6; const int max = 168; var delta = location - min; - if ((uint)delta >= max - min) + if ((uint)delta > max - min) return false; if (location % 2 != 0) @@ -20,7 +20,7 @@ public static bool IsValidMet6AO(int location) const int min = 170; const int max = 354; var delta = location - min; - if ((uint)delta >= max - min) + if ((uint)delta > max - min) return false; if (location % 2 != 0)