From 93876d98eba32c02f530dc44a30697cc701c9a9e Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 9 Jul 2018 21:59:38 -0700 Subject: [PATCH] Fix CanInhabitGen1 comparison extracted and forgot to double check the boolean comparison when inverting the return value https://projectpokemon.org/home/forums/topic/46148-bug-gen-1-moves-and-legendaries-incorrectly-flagged-in-gen-2-game/ Thanks Raptor385! --- PKHeX.Core/Legality/Core.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Core.cs b/PKHeX.Core/Legality/Core.cs index b5edcb8074f..71e6730bb96 100644 --- a/PKHeX.Core/Legality/Core.cs +++ b/PKHeX.Core/Legality/Core.cs @@ -1258,7 +1258,7 @@ internal static bool CanInhabitGen1(this PKM pkm) if (pkm is PK2 pk2 && pk2.CaughtData != 0) return false; int species = pkm.Species; - if (species > MaxSpeciesID_1 || !FutureEvolutionsGen1.Contains(species)) + if (species > MaxSpeciesID_1 && !FutureEvolutionsGen1.Contains(species)) return false; return true; }