Fix gen4-6 gen4 origin encounter type defer check

only check etype if appropriate (not gen7+)
This commit is contained in:
Kurt 2017-11-25 09:48:49 -08:00
parent d1bae13250
commit 76903bce9f

View file

@ -91,7 +91,7 @@ namespace PKHeX.Core
{
if (!info.PIDIV.Type.IsCompatible4(z, pkm))
deferredPIDIV.Add(z);
else if (!IsEncounterTypeMatch(z, pkm.EncounterType))
else if (pkm.Format <= 6 && !IsEncounterTypeMatch(z, pkm.EncounterType))
deferredEType.Add(z);
else
yield return z;