From b85969219ad8804f20a6f0876179e5be514869ba Mon Sep 17 00:00:00 2001 From: Kamron Batman Date: Mon, 14 May 2018 20:24:45 -0700 Subject: [PATCH] Fixes small bug with shinyness --- Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 34af9ce..58294f1 100644 --- a/Program.cs +++ b/Program.cs @@ -452,7 +452,7 @@ public class Gen3EventChecker Console.WriteLine("Nature: {0}", index2Nature(PID % 25)); Console.WriteLine("Shiny: Cannot be shiny"); - + uint[] ivs = ParseStats((rand3 >> 0x10) & 0x7FFF, (rand4 >> 0x10) & 0x7FFF); Console.WriteLine("IVs: {0}, {1}, {2}, {4}, {5}, {3}", ivs[0], ivs[1], ivs[2], ivs[3], ivs[4], ivs[5]); @@ -468,7 +468,7 @@ public class Gen3EventChecker // Console.WriteLine("Entry: {0}", GetRandomEntry((c & 0xFFFF0000) | (d >> 0x10), 5)); // Console.WriteLine("Entry: {0}", (((rand6 >> 0x10) / 1) >> 0) % 3); // Console.WriteLine("Entry: {0}", GetRandomEntry(d >> 0x10, 5)); - + /*uint newSeed = seed; for (int h = 0; h < 1000000; h++) @@ -515,7 +515,7 @@ public class Gen3EventChecker forcedShiny = entry.Item4; - if (forcedShiny) + if (forcedShiny && Has(algo, Algo.PCJP2003)) algo |= Algo.CanBeShiny; }