mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-09 10:48:07 -05:00
Update EvolutionRestrictions.cs
This commit is contained in:
parent
5a012e85a0
commit
4c8772ff14
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user