diff --git a/PKHeX.Core/Legality/Encounters/Generator/ByGeneration/EncounterGenerator3GC.cs b/PKHeX.Core/Legality/Encounters/Generator/ByGeneration/EncounterGenerator3GC.cs index f4fdb103f..3b9288101 100644 --- a/PKHeX.Core/Legality/Encounters/Generator/ByGeneration/EncounterGenerator3GC.cs +++ b/PKHeX.Core/Legality/Encounters/Generator/ByGeneration/EncounterGenerator3GC.cs @@ -83,6 +83,13 @@ private static IEnumerable IterateInner(PKM pk, EvoCriteria[] ch private static bool GetIsShadowLockValidEReader(PKM pk, LegalInfo info, EncounterShadow3Colo s) { // E-Reader have fixed IVs, and aren't recognized as CXD (no PID-IV correlation). + + // IVs are all zero. + Span ivs = stackalloc int[6]; + pk.GetIVs(ivs); + if (ivs.ContainsAnyExcept(0)) + return false; + Span seeds = stackalloc uint[XDRNG.MaxCountSeedsPID]; var count = XDRNG.GetSeeds(seeds, pk.EncryptionConstant); var xdc = seeds[..count];