mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-11-18 21:01:44 -06:00
Flag EReader shadows with any nonzero IV
This commit is contained in:
@@ -83,6 +83,13 @@ private static IEnumerable<IEncounterable> 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<int> ivs = stackalloc int[6];
|
||||
pk.GetIVs(ivs);
|
||||
if (ivs.ContainsAnyExcept(0))
|
||||
return false;
|
||||
|
||||
Span<uint> seeds = stackalloc uint[XDRNG.MaxCountSeedsPID];
|
||||
var count = XDRNG.GetSeeds(seeds, pk.EncryptionConstant);
|
||||
var xdc = seeds[..count];
|
||||
|
||||
Reference in New Issue
Block a user