mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
Add VC1 tradeback shiny check
tradeback implies it was transferred to GS for a bit, thus had to be transported with the new transporter
This commit is contained in:
parent
13a50fecc0
commit
423be8b2c0
1 changed files with 8 additions and 2 deletions
|
@ -1919,8 +1919,14 @@ namespace PKHeX.Core
|
|||
AddLine(Severity.Invalid, V368, CheckIdentifier.Egg);
|
||||
}
|
||||
|
||||
if (pkm.Format > 2 && pkm.VC2 && pkm.Gender == 1 && pkm.PersonalInfo.Gender == 31 && pkm.IsShiny)
|
||||
AddLine(Severity.Invalid, V209, CheckIdentifier.PID);
|
||||
if (pkm.Format > 2)
|
||||
{
|
||||
// Female Shinies for a 12.5%-F species are not possible with the 'correct' correlation
|
||||
// Original Transporter code generated a random nature (VC1 only), so we can ignore in this case
|
||||
bool checkShiny = pkm.VC2 || pkm.TradebackStatus == TradebackType.WasTradeback && pkm.VC1;
|
||||
if (checkShiny && pkm.Gender == 1 && pkm.PersonalInfo.Gender == 31 && pkm.IsShiny)
|
||||
AddLine(Severity.Invalid, V209, CheckIdentifier.PID);
|
||||
}
|
||||
|
||||
if (!(pkm is PK1 pk1))
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue