mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
Invert PCD return value on match
Result of refactoring and manually flipping all the returns Closes #1421
This commit is contained in:
parent
9869335151
commit
a62e2a95ad
1 changed files with 2 additions and 1 deletions
|
@ -1149,7 +1149,7 @@ namespace PKHeX.Core
|
|||
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 @@ namespace PKHeX.Core
|
|||
|
||||
if (wc.PIDType == 2 && !pkm.IsShiny) return false;
|
||||
if (wc.PIDType == 3 && pkm.IsShiny) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue