Update SAV_Encounters.cs

This commit is contained in:
Kurt 2021-06-23 09:35:29 -07:00
parent 401ab98f42
commit 285876dcf7

View file

@ -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);