mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 02:05:32 -05:00
update milotic specific evolution checks
verifier: return true if detectably traded check: invert condition to skip out if it is verified traded
This commit is contained in:
@@ -1610,7 +1610,7 @@ private static bool VerifyHistoryUntradedEvolution(PKM pkm, out CheckResult resu
|
||||
result = null;
|
||||
// Handling Trainer string is empty implying it has not been traded.
|
||||
// If it must be trade evolved, flag it.
|
||||
if (!Legal.IsTradeEvolved(pkm))
|
||||
if (Legal.IsTradeEvolved(pkm))
|
||||
return false;
|
||||
|
||||
if (pkm.Species == 350) // Milotic
|
||||
|
||||
@@ -32,7 +32,7 @@ private static bool IsValidEvolution(PKM pkm, LegalInfo info)
|
||||
int species = pkm.Species;
|
||||
if (info.EncounterMatch.Species == species)
|
||||
return true;
|
||||
if (info.EncounterMatch.EggEncounter && species == 350 && pkm.Format >= 5) // Prism Scale
|
||||
if (info.EncounterMatch.EggEncounter && species == 350 && pkm.Format >= 5 && !pkm.IsUntraded) // Prism Scale
|
||||
return true;
|
||||
if (!Legal.IsEvolutionValid(pkm, info.EncounterMatch.Species))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user