mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-06 05:27:14 -05:00
parent
9d1ca22b6d
commit
311e110f6b
|
|
@ -624,6 +624,14 @@ private static IEnumerable<EncounterSlot> GetFilteredSlots67(PKM pkm, IReadOnlyC
|
|||
int species = pkm.Species;
|
||||
int form = pkm.AltForm;
|
||||
|
||||
// Edge Case Handling
|
||||
switch (species)
|
||||
{
|
||||
case 744 when form == 1:
|
||||
case 745 when form == 2:
|
||||
yield break;
|
||||
}
|
||||
|
||||
if (AlolanVariantEvolutions12.Contains(species)) // match form if same species, else form 0.
|
||||
slotdata = encounterSlots.Where(slot => species == slot.Species ? slot.Form == form : slot.Form == 0);
|
||||
else if (ShouldMatchSlotForm()) // match slot form
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -32,6 +32,7 @@ public void VerifyLegalityTest()
|
|||
|
||||
folder = Path.Combine(folder, "Legality");
|
||||
VerifyAll(folder, "Legal", true);
|
||||
VerifyAll(folder, "Illegal", false);
|
||||
}
|
||||
|
||||
// ReSharper disable once UnusedParameter.Local
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user