mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 16:27:21 +00:00
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:
parent
f91a1c1d31
commit
ed180f1b5f
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue