Ignore memory restriction for past gen same OT xfrs

Closes #1145
This commit is contained in:
Kurt 2017-05-18 17:38:26 -07:00
parent 72865bbfe9
commit 933bee7778

View file

@ -2209,6 +2209,12 @@ namespace PKHeX.Core
return;
}
// Transfer 6->7 & withdraw to same HT => keeps past gen memory
// Don't require link trade memory for these past gen cases
int gen = pkm.GenNumber;
if (3 <= gen && gen < 7 && pkm.CurrentHandler == 1)
return;
if (pkm.HT_Memory != 4)
AddLine(Severity.Invalid, V156, CheckIdentifier.Memory);
if (pkm.HT_TextVar != 0)