Check shiny state for GB Era events

This commit is contained in:
Kurt 2020-10-18 10:57:18 -07:00
parent f6476a4737
commit a4baec9939
2 changed files with 8 additions and 0 deletions

View file

@ -31,6 +31,10 @@ namespace PKHeX.Core
if (Language != EncounterGBLanguage.Any && pkm.Japanese != (Language == EncounterGBLanguage.Japanese))
return false;
// EC/PID check doesn't exist for these, so check Shiny state here.
if ((Shiny == Shiny.Always) != pkm.IsShiny)
return false;
if (TID != -1 && pkm.TID != TID)
return false;

View file

@ -36,6 +36,10 @@ namespace PKHeX.Core
if (CurrentLevel != -1 && CurrentLevel > pkm.CurrentLevel)
return false;
// EC/PID check doesn't exist for these, so check Shiny state here.
if ((Shiny == Shiny.Always) != pkm.IsShiny && Location != 14) // Celebi is the only Wild "event", can be either.
return false;
if (EggEncounter && !pkm.IsEgg)
return true;