Allow antishiny CXD spreads for some checks

This commit is contained in:
Kurt 2020-04-11 23:14:16 -07:00
parent dab57be918
commit 8ac61d7ff7
2 changed files with 3 additions and 1 deletions

View file

@ -823,6 +823,8 @@ namespace PKHeX.Core
case WC3 g:
if (val == g.Method)
return true;
if (val == PIDType.CXDAnti && g.Shiny == Shiny.Never && g.Method == PIDType.CXD)
return true;
// forced shiny eggs, when hatched, can lose their detectable correlation.
return g.IsEgg && !pkm.IsEgg && val == PIDType.None && (g.Method == PIDType.BACD_R_S || g.Method == PIDType.BACD_U_S);
case EncounterStatic s:

View file

@ -24,7 +24,7 @@ namespace PKHeX.Core
private static void VerifyCXDStarterCorrelation(LegalityAnalysis data)
{
var pidiv = data.Info.PIDIV;
if (pidiv.Type != PIDType.CXD)
if (pidiv.Type != PIDType.CXD && pidiv.Type != PIDType.CXDAnti)
return;
bool valid;