Check valid encounter slots to capture trade-evos

Thanks theSLAYER!
This commit is contained in:
Kaphotics
2016-05-10 08:09:36 -07:00
parent 608d751f06
commit e6b6005fc9

View File

@@ -601,7 +601,7 @@ private LegalityCheck verifyHistory()
return new LegalityCheck(Severity.Invalid, "Untraded -- Contest stats on XY should be zero.");
// We know it is untraded (HT is empty), if it must be trade evolved flag it.
if (Legal.getHasTradeEvolved(pk6))
if (Legal.getHasTradeEvolved(pk6) && (EncounterMatch as EncounterSlot[])?.Any(slot => slot.Species == pk6.Species) != true)
{
if (pk6.Species != 350) // Milotic
return new LegalityCheck(Severity.Invalid, "Untraded -- requires a trade evolution.");