mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
Ignore NonEgg Encounter for gen 3 illegal transfer unhatched eggs
This commit is contained in:
parent
7f21973038
commit
6d8d6b7758
1 changed files with 8 additions and 5 deletions
|
@ -722,6 +722,11 @@ namespace PKHeX.Core
|
|||
if (pkm.WasLink)
|
||||
return verifyEncounterLink();
|
||||
|
||||
if (pkm.Gen3 && !pkm.HasOriginalMetLocation)
|
||||
{
|
||||
return verifyEncounterG3Transfer();
|
||||
}
|
||||
|
||||
bool wasEvent = pkm.WasEvent || pkm.WasEventEgg;
|
||||
if (wasEvent)
|
||||
{
|
||||
|
@ -730,11 +735,6 @@ namespace PKHeX.Core
|
|||
return result;
|
||||
}
|
||||
|
||||
if (pkm.Gen3 && !pkm.HasOriginalMetLocation)
|
||||
{
|
||||
return verifyEncounterG3Transfer();
|
||||
}
|
||||
|
||||
if (null != (EncounterMatch = Legal.getValidStaticEncounter(pkm)))
|
||||
{
|
||||
var result = verifyEncounterStatic();
|
||||
|
@ -770,8 +770,11 @@ namespace PKHeX.Core
|
|||
{
|
||||
pkm.WasEgg = true;
|
||||
EggResult = verifyEncounterEgg3Transfer();
|
||||
if (pkm.IsEgg)
|
||||
return EggResult;
|
||||
}
|
||||
|
||||
// TODO: Include also gen 3 events
|
||||
if (null != (EncounterMatch = Legal.getValidStaticEncounter(pkm)))
|
||||
{
|
||||
NonEggResult = verifyEncounterStatic();
|
||||
|
|
Loading…
Reference in a new issue