mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-16 05:18:41 +00:00
Fix in getValidEncounterSlots
This commit is contained in:
parent
036449dfa0
commit
26b9308890
1 changed files with 2 additions and 8 deletions
|
@ -1054,13 +1054,7 @@ namespace PKHeX.Core
|
|||
if (slotMax != null)
|
||||
slotMax = new EncounterSlot(slotMax) { Pressure = true, Form = pkm.AltForm };
|
||||
|
||||
if (gen < 4)
|
||||
{
|
||||
if (slotMax != null)
|
||||
slotdata.Add(slotMax);
|
||||
return slotdata;
|
||||
}
|
||||
if (gen == 6 || !DexNav)
|
||||
if (gen >= 6 && !DexNav)
|
||||
{
|
||||
// Filter for Form Specific
|
||||
slotdata.AddRange(WildForms.Contains(pkm.Species)
|
||||
|
@ -1072,7 +1066,7 @@ namespace PKHeX.Core
|
|||
}
|
||||
|
||||
List<EncounterSlot> eslots = encounterSlots.Where(slot => !WildForms.Contains(pkm.Species) || slot.Form == pkm.AltForm).ToList();
|
||||
if(gen <=4)
|
||||
if(gen <= 5)
|
||||
{
|
||||
slotdata.AddRange(eslots);
|
||||
return slotdata;
|
||||
|
|
Loading…
Add table
Reference in a new issue