Update LevelVerifier.cs

This commit is contained in:
Kurt
2023-03-24 23:48:35 -07:00
parent a68165cdd8
commit 081a48bbf6

View File

@@ -125,9 +125,9 @@ private static bool IsTradeEvolutionRequired(LegalityAnalysis data, IEncounterTe
var moves = data.Info.Moves;
// Gen2 stuff can be traded between Gen2 games holding an Everstone, assuming it hasn't been transferred to Gen1 for special moves.
if (enc.Generation == 2)
return Array.Exists(moves, z => z.Generation != 2);
return Array.Exists(moves, z => z.Generation == 1);
// Gen1 stuff can only be un-evolved if it was never traded from the OT.
if (Array.Exists(moves, z => z.Generation != 1))
if (Array.Exists(moves, z => z.Generation == 2))
return true; // traded to Gen2 for special moves
if (pk.Format != 1)
return true; // traded to Gen2 (current state)