mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Allow antishiny CXD spreads for some checks
This commit is contained in:
parent
dab57be918
commit
8ac61d7ff7
2 changed files with 3 additions and 1 deletions
|
@ -823,6 +823,8 @@ namespace PKHeX.Core
|
||||||
case WC3 g:
|
case WC3 g:
|
||||||
if (val == g.Method)
|
if (val == g.Method)
|
||||||
return true;
|
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.
|
// 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);
|
return g.IsEgg && !pkm.IsEgg && val == PIDType.None && (g.Method == PIDType.BACD_R_S || g.Method == PIDType.BACD_U_S);
|
||||||
case EncounterStatic s:
|
case EncounterStatic s:
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace PKHeX.Core
|
||||||
private static void VerifyCXDStarterCorrelation(LegalityAnalysis data)
|
private static void VerifyCXDStarterCorrelation(LegalityAnalysis data)
|
||||||
{
|
{
|
||||||
var pidiv = data.Info.PIDIV;
|
var pidiv = data.Info.PIDIV;
|
||||||
if (pidiv.Type != PIDType.CXD)
|
if (pidiv.Type != PIDType.CXD && pidiv.Type != PIDType.CXDAnti)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool valid;
|
bool valid;
|
||||||
|
|
Loading…
Add table
Reference in a new issue