Yield SP eggs in encounter db, detect "link trade" correctly

This commit is contained in:
Kurt 2021-11-21 18:36:36 -08:00
parent 2cb3b61e48
commit 27e899ffdd
2 changed files with 2 additions and 2 deletions

View file

@ -373,7 +373,7 @@ namespace PKHeX.Core
/// <param name="dest">Game the egg is currently present on</param>
public static void SetEggMetData(this PKM pk, GameVersion origin, GameVersion dest)
{
bool traded = origin == dest;
bool traded = origin != dest;
var today = pk.MetDate = DateTime.Today;
pk.Egg_Location = EncounterSuggestion.GetSuggestedEncounterEggLocationEgg(pk.Generation, origin, traded);
pk.EggMetDate = today;

View file

@ -200,7 +200,7 @@ namespace PKHeX.Core
SWSH => g2 is SW or SH,
BDSP => g2 is BD or SP,
Gen8 => SWSH.Contains(g2) || BD.Contains(g2),
Gen8 => SWSH.Contains(g2) || BDSP.Contains(g2),
_ => false,
};
}