mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
Check date legality
This commit is contained in:
parent
d5e1447f7c
commit
760adb4945
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue