Add missing parenthesis

This commit is contained in:
Kurt
2017-05-10 21:37:54 -07:00
parent 1b7e0e630c
commit d874092e58

View File

@@ -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;