mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 01:35:20 -05:00
Provide more accurate met level for eggs
Gen6 egg with met level != 1 (ie 98) will use the gen3-4 metlevel branch. fuzzed input from #1728 to be hacked (met level = 98)
This commit is contained in:
@@ -30,7 +30,7 @@ public static EncounterStatic GetSuggestedMetInfo(PKM pkm)
|
||||
private static EncounterStatic GetSuggestedEncounterEgg(PKM pkm, int loc = -1)
|
||||
{
|
||||
int lvl = 1; // gen5+
|
||||
if (!pkm.IsNative)
|
||||
if (!pkm.IsNative && pkm.GenNumber < 5)
|
||||
lvl = pkm.CurrentLevel; // be generous with transfer conditions
|
||||
else if (pkm.Format < 5) // and native
|
||||
lvl = 0;
|
||||
|
||||
Reference in New Issue
Block a user