mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 16:46:00 -05:00
Check shiny state for GB Era events
This commit is contained in:
@@ -31,6 +31,10 @@ public override bool IsMatch(PKM pkm, DexLevel evo)
|
||||
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 @@ public override bool IsMatch(PKM pkm, DexLevel evo)
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user