mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-24 00:24:11 -05:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user