mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Update shiny comparisons for (traded)eggs
PID rerolls happen on trade to ensure star/square state is kept
This commit is contained in:
parent
2c0b85ef21
commit
5ba396db6e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue