mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 09:46:42 -05:00
Invert PCD return value on match
Result of refactoring and manually flipping all the returns Closes #1421
This commit is contained in:
@@ -1149,7 +1149,7 @@ private static bool GetIsMatchPCD(PKM pkm, PKM wc, IEnumerable<DexLevel> 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<DexLevel> vs)
|
||||
{
|
||||
@@ -1282,6 +1282,7 @@ private static bool GetIsMatchWC7(PKM pkm, WC7 wc, IEnumerable<DexLevel> vs)
|
||||
|
||||
if (wc.PIDType == 2 && !pkm.IsShiny) return false;
|
||||
if (wc.PIDType == 3 && pkm.IsShiny) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user