mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 13:43:09 -05:00
Add missing parenthesis
This commit is contained in:
@@ -1061,9 +1061,9 @@ private CheckResult verifyEncounterG4Transfer()
|
||||
{
|
||||
// Sanity check EncounterType if wild encounters are still an alternative and the EncounterType info is still available
|
||||
var type = (EncounterType)pkm.EncounterType;
|
||||
if (Gen4WildResult == null || pkm.Format <= 6 && type == 0
|
||||
if (Gen4WildResult == null || pkm.Format <= 6 && (type == 0
|
||||
? EncounterStaticMatch.Any(s => !(s is EncounterStaticTyped))
|
||||
: EncounterStaticMatch.Any(s => (s as EncounterStaticTyped)?.TypeEncounter == type))
|
||||
: EncounterStaticMatch.Any(s => (s as EncounterStaticTyped)?.TypeEncounter == type)))
|
||||
{
|
||||
verifyTransferLegalityG4();
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user