mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +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)
|
if (pkm.WasLink)
|
||||||
return verifyEncounterLink();
|
return verifyEncounterLink();
|
||||||
|
|
||||||
|
if (pkm.Gen3 && !pkm.HasOriginalMetLocation)
|
||||||
|
{
|
||||||
|
return verifyEncounterG3Transfer();
|
||||||
|
}
|
||||||
|
|
||||||
bool wasEvent = pkm.WasEvent || pkm.WasEventEgg;
|
bool wasEvent = pkm.WasEvent || pkm.WasEventEgg;
|
||||||
if (wasEvent)
|
if (wasEvent)
|
||||||
{
|
{
|
||||||
|
@ -730,11 +735,6 @@ namespace PKHeX.Core
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pkm.Gen3 && !pkm.HasOriginalMetLocation)
|
|
||||||
{
|
|
||||||
return verifyEncounterG3Transfer();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (null != (EncounterMatch = Legal.getValidStaticEncounter(pkm)))
|
if (null != (EncounterMatch = Legal.getValidStaticEncounter(pkm)))
|
||||||
{
|
{
|
||||||
var result = verifyEncounterStatic();
|
var result = verifyEncounterStatic();
|
||||||
|
@ -770,8 +770,11 @@ namespace PKHeX.Core
|
||||||
{
|
{
|
||||||
pkm.WasEgg = true;
|
pkm.WasEgg = true;
|
||||||
EggResult = verifyEncounterEgg3Transfer();
|
EggResult = verifyEncounterEgg3Transfer();
|
||||||
|
if (pkm.IsEgg)
|
||||||
|
return EggResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Include also gen 3 events
|
||||||
if (null != (EncounterMatch = Legal.getValidStaticEncounter(pkm)))
|
if (null != (EncounterMatch = Legal.getValidStaticEncounter(pkm)))
|
||||||
{
|
{
|
||||||
NonEggResult = verifyEncounterStatic();
|
NonEggResult = verifyEncounterStatic();
|
||||||
|
|
Loading…
Reference in a new issue