mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-23 15:35:11 -05:00
Update EvolutionRestrictions.cs
This commit is contained in:
@@ -109,6 +109,11 @@ public static bool IsValidEvolutionWithMove(PKM pkm, LegalInfo info)
|
||||
if (pkm.Format < 4) // doesn't exist yet!
|
||||
return true;
|
||||
|
||||
// OK if un-evolved from original encounter
|
||||
int species = pkm.Species;
|
||||
if (info.EncounterMatch.Species == species)
|
||||
return true;
|
||||
|
||||
// Exclude evolution paths that did not require a move w/level-up evolution
|
||||
var enc = info.EncounterOriginal;
|
||||
if (!SpeciesEvolutionWithMove.TryGetValue(enc.Species, out var entry))
|
||||
|
||||
Reference in New Issue
Block a user