Update shiny comparisons for (traded)eggs

PID rerolls happen on trade to ensure star/square state is kept
This commit is contained in:
Kurt 2019-11-28 12:40:33 -08:00
parent 2c0b85ef21
commit 5ba396db6e

View file

@ -512,8 +512,10 @@ namespace PKHeX.Core
{
if (pkm.Egg_Location != Locations.LinkTrade6)
return false;
if (PIDType == Shiny.Random && pkm.IsShiny && pkm.ShinyXor > 1)
return false; // shiny traded egg will always have xor0/1.
}
else if (PIDType == 0 && pkm.IsShiny)
if (!PIDType.IsValid(pkm))
{
return false; // can't be traded away for unshiny
}