mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Update EncounterGenerator.cs
This commit is contained in:
parent
e532a29e72
commit
c1bc371d76
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ namespace PKHeX.Core
|
|||
|
||||
private static IEnumerable<IEncounterable> GenerateFilteredEncounters12(PKM pkm)
|
||||
{
|
||||
bool crystal = (pkm.Format == 2 && pkm.Met_Location != 0) || (pkm.Format >= 7 && pkm.OT_Gender == 1);
|
||||
bool crystal = (pkm is PK2 pk2 && pk2.CaughtData != 0) || (pkm.Format >= 7 && pkm.OT_Gender == 1);
|
||||
bool kadabra = pkm.Species == 64 && pkm is PK1 pk1
|
||||
&& (pk1.Catch_Rate == PersonalTable.RB[64].CatchRate
|
||||
|| pk1.Catch_Rate == PersonalTable.Y[64].CatchRate); // catch rate outsider, return gen1 first always
|
||||
|
|
Loading…
Reference in a new issue