Block wild dusk rockruff

closes #1627
adds test cases
This commit is contained in:
Kurt 2017-11-17 20:02:01 -08:00
parent 9d1ca22b6d
commit 311e110f6b
7 changed files with 9 additions and 0 deletions

View File

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

View File

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