update memory captured check

gen5 landorus witnessing another species should use gen6

https://projectpokemon.org/home/forums/topic/45424-landorus-memory-flagged-as-illegal/
This commit is contained in:
Kurt
2018-05-30 21:50:11 -07:00
parent 01c36bb3ad
commit e82dcdb124
2 changed files with 1 additions and 1 deletions

View File

@@ -1991,7 +1991,7 @@ private void VerifyHTMemory()
AddLine(Severity.Invalid, string.Format(V160, V206), CheckIdentifier.Memory); return;
case 14:
if (Legal.GetCanBeCaptured(pkm.HT_TextVar, Info.Generation))
if (Legal.GetCanBeCaptured(pkm.HT_TextVar, 6, pkm.IsUntraded ? (GameVersion)pkm.Version : GameVersion.Any))
AddLine(Severity.Valid, string.Format(V164, V206), CheckIdentifier.Memory);
else
AddLine(Severity.Invalid, string.Format(V165, V206), CheckIdentifier.Memory);