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:
Kurt
2017-11-15 08:36:09 -08:00
parent 3832a8afd4
commit 897ed84933
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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;