mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 12:35:20 -05: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
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user