From 1769bcd30663bb2b88bd42d8154769dfd2f48d04 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 9 Sep 2017 19:27:28 -0700 Subject: [PATCH] Add no-deferred early break for gen3 c627a86f said it added for both 3 & 4, but was only added for gen4. --- PKHeX.Core/Legality/Encounters/EncounterGenerator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs b/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs index 32c3d98c0..6073364fc 100644 --- a/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs +++ b/PKHeX.Core/Legality/Encounters/EncounterGenerator.cs @@ -61,6 +61,9 @@ private static IEnumerable GetEncounters3(PKM pkm, LegalInfo inf else deferred.Add(z); } + if (deferred.Count == 0) + yield break; + info.PIDIVMatches = false; foreach (var z in deferred) yield return z;