From 99fe3b59b4bd0e242e425799f7222080dbe0208b Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 4 Jan 2021 15:06:52 -0800 Subject: [PATCH] Fix contains indexing incorrectly blame apr 17 2017 ! https://github.com/kwsch/PKHeX/commit/a5b1d72f06c33040eea881a15c4882fc8887711c#diff-53c2e8acc19c5af65034cf0460ba82ebc7dc00ba61eb142ef4aa2c0cbc1f7cffR2918 --- PKHeX.Core/Legality/Restrictions/GBRestrictions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Restrictions/GBRestrictions.cs b/PKHeX.Core/Legality/Restrictions/GBRestrictions.cs index a22e50e59..5926f545f 100644 --- a/PKHeX.Core/Legality/Restrictions/GBRestrictions.cs +++ b/PKHeX.Core/Legality/Restrictions/GBRestrictions.cs @@ -117,7 +117,7 @@ namespace PKHeX previousspecies = 33; return; - case (int)Species.Exeggutor when moves.Contains(23) && moves.Any(m => G1Exeggcute_IncompatibleMoves.Contains(moves[m])): + case (int)Species.Exeggutor when moves.Contains(23) && moves.Any(m => G1Exeggcute_IncompatibleMoves.Contains(m)): // Exeggutor learns Stomp at level 28 // Exeggcute learns Stun Spore at 32, PoisonPowder at 37 and Sleep Powder at 48 incompatible_current = new[] { 23 };