Check date legality

This commit is contained in:
Kurt 2020-11-15 08:31:48 -08:00
parent d5e1447f7c
commit 760adb4945

View file

@ -88,6 +88,7 @@ namespace PKHeX.Core
yield break;
var ball = (Ball)pkm.Ball;
var stamp = EncounterSlot8GO.GetTimeStamp(pkm.Met_Year, pkm.Met_Month, pkm.Met_Day);
foreach (var s in Slots)
{
var slot = (EncounterSlot8GO)s;
@ -97,6 +98,9 @@ namespace PKHeX.Core
continue;
if (!slot.Shiny.IsValid(pkm))
continue;
if (!slot.IsWithinStartEnd(stamp))
continue;
yield return slot;
}
}