mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Update SAV_Encounters.cs
This commit is contained in:
parent
401ab98f42
commit
285876dcf7
1 changed files with 6 additions and 0 deletions
|
@ -252,6 +252,12 @@ namespace PKHeX.WinForms
|
|||
{
|
||||
var pi = pt.GetFormEntry(s, 0);
|
||||
var fc = pi.FormCount;
|
||||
if (fc == 0 && !Main.Settings.EncounterDb.FilterUnavailableSpecies) // not present in game
|
||||
{
|
||||
// try again using past-gen table
|
||||
pi = PersonalTable.USUM.GetFormEntry(s, 0);
|
||||
fc = pi.FormCount;
|
||||
}
|
||||
for (int f = 0; f < fc; f++)
|
||||
{
|
||||
var encs = GetEncounters(s, f, moves, pk, versions);
|
||||
|
|
Loading…
Reference in a new issue