mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
Check shiny state for GB Era events
This commit is contained in:
parent
f6476a4737
commit
a4baec9939
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue