From e36fdd3cb6b0c5d3d2c53ebd6cd6c67b48c208a6 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 22 Apr 2021 22:32:17 -0700 Subject: [PATCH] Update EncounterStatic8ND.cs --- .../EncounterStatic/EncounterStatic8ND.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic8ND.cs b/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic8ND.cs index 700a5f593..d36c3b464 100644 --- a/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic8ND.cs +++ b/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic8ND.cs @@ -24,6 +24,13 @@ public EncounterStatic8ND(byte lvl, byte dyna, byte flawless, GameVersion game = protected override bool IsMatchLevel(PKM pkm, DexLevel evo) { var lvl = pkm.Met_Level; + + if (lvl <= 25) // 1 or 2 stars + { + if (InaccessibleRank12DistributionLocations.Contains(pkm.Met_Location)) + return false; + } + if (lvl == Level) return true; @@ -36,12 +43,6 @@ protected override bool IsMatchLevel(PKM pkm, DexLevel evo) if (lvl % 5 != 0) return false; - if (lvl <= 25) // 1 or 2 stars - { - if (InaccessibleRank12DistributionLocations.Contains(pkm.Met_Location)) - return false; - } - // shared nests can be down-leveled to any if (pkm.Met_Location == SharedNest) return true;