This commit is contained in:
Kurt
2024-11-15 23:07:11 -06:00
3 changed files with 5 additions and 8 deletions

View File

@@ -209,6 +209,7 @@ public static bool IsValidDateWC9(WC9 card, DateOnly obtained) => (WC9Gifts.TryG
{0511, (new(2024, 08, 15), new(2024, 08, 31))}, // WCS 2024 Steenee
{0512, (new(2024, 08, 16), new(2024, 08, 20))}, // Tomoya's Sylveon
{0062, (new(2024, 10, 31), new(2026, 02, 01))}, // PokéCenter Birthday Tandemaus
{0513, (new(2024, 11, 15), new(2024, 11, 23))}, // Patrick's Pelipper
{9021, HOME3_ML}, // Hidden Ability Sprigatito
{9022, HOME3_ML}, // Hidden Ability Fuecoco

View File

@@ -100,14 +100,10 @@ private static bool IsValidMemory29(Species encountered, Species species, GameVe
if (version == GameVersion.SH && encountered == Zacian)
return false;
return species switch
{
// Zacian and Zamazenta can't meet Eternatus as OT memory.
Zacian or Zamazenta => encountered != Eternatus,
// Calyrex, Spectrier, Glastrier can't meet Eternatus, Zacian, Zamazenta as OT memory.
Calyrex or Spectrier or Glastrier => encountered is not (Eternatus or Zacian or Zamazenta),
_ => true,
};
// These legends can't meet Eternatus as OT memory since they require Eternatus to be caught.
if (species is (Zacian or Zamazenta or Glastrier or Spectrier or Calyrex))
return encountered != Eternatus;
return true;
}
private static bool CanObtainMemorySWSH(byte memory) => memory <= MAX_MEMORY_ID_SWSH && !Memory_NotSWSH.Contains(memory);