mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-25 00:15:14 -05:00
Update EncounterStatic8ND.cs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user