mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 12:35:20 -05:00
Update EncounterGenerator.cs
This commit is contained in:
parent
e532a29e72
commit
c1bc371d76
|
|
@ -194,7 +194,7 @@ private static IEnumerable<IEncounterable> GenerateRawEncounters12(PKM pkm, Game
|
|||
|
||||
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 New Issue
Block a user