Allow traded eggs when checking g6+ receivability

As noted in the EncounterEgg generator, Gen6+ update the origin game to
the OT's when hatched.
Thanks Zaskarel!
This commit is contained in:
Kurt 2018-10-27 09:44:47 -07:00
parent f91a1c1d31
commit ed180f1b5f

View file

@ -214,8 +214,8 @@ namespace PKHeX.Core
var pkm = data.pkm;
switch (g)
{
case WC6 wc6 when !wc6.CanBeReceivedByVersion(pkm.Version):
case WC7 wc7 when !wc7.CanBeReceivedByVersion(pkm.Version):
case WC6 wc6 when !wc6.CanBeReceivedByVersion(pkm.Version) && !pkm.WasTradedEgg:
case WC7 wc7 when !wc7.CanBeReceivedByVersion(pkm.Version) && !pkm.WasTradedEgg:
data.AddLine(GetInvalid(LEncGiftVersionNotDistributed, CheckIdentifier.GameOrigin));
return;
case WC6 wc6 when wc6.RestrictLanguage != 0 && wc6.Language != wc6.RestrictLanguage: