From a62e2a95adf235ea4e5397daa26243369bec73f9 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 25 Aug 2017 17:29:14 -0700 Subject: [PATCH] Invert PCD return value on match Result of refactoring and manually flipping all the returns Closes #1421 --- PKHeX.Core/Legality/Encounters/EncounterGenerator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs b/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs index 7bb36a16f..47bce082a 100644 --- a/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs +++ b/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs @@ -1149,7 +1149,7 @@ private static bool GetIsMatchPCD(PKM pkm, PKM wc, IEnumerable vs) if (wc.CNT_Tough > pkm.CNT_Tough) return false; if (wc.CNT_Sheen > pkm.CNT_Sheen) return false; - return false; + return true; } private static bool GetIsMatchPGF(PKM pkm, PGF wc, IEnumerable vs) { @@ -1282,6 +1282,7 @@ private static bool GetIsMatchWC7(PKM pkm, WC7 wc, IEnumerable vs) if (wc.PIDType == 2 && !pkm.IsShiny) return false; if (wc.PIDType == 3 && pkm.IsShiny) return false; + return true; }