From 0e24b5237e979a73bcd8e6c9c2de47d1cb47eb6c Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 20 Oct 2017 20:10:13 -0700 Subject: [PATCH] cleanup remove redundant/repetitive match update (updateTypeInfo with Format>=7 already updates the encountermatch just prior to this method call) --- PKHeX.Core/Legality/Analysis.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/PKHeX.Core/Legality/Analysis.cs b/PKHeX.Core/Legality/Analysis.cs index 1aec3599d..7784af053 100644 --- a/PKHeX.Core/Legality/Analysis.cs +++ b/PKHeX.Core/Legality/Analysis.cs @@ -233,14 +233,6 @@ namespace PKHeX.Core } private void UpdateTypeInfo() { - if (pkm.Format >= 7) - { - if (pkm.VC1) - Info.EncounterMatch = EncounterGenerator.GetRBYStaticTransfer(pkm.Species, pkm.Met_Level); - else if (pkm.VC2) - Info.EncounterMatch = EncounterGenerator.GetGSStaticTransfer(pkm.Species, pkm.Met_Level); - } - if (pkm.GenNumber <= 2 && pkm.TradebackStatus == TradebackType.Any && (EncounterMatch as GBEncounterData)?.Generation != pkm.GenNumber) // Example: GSC Pokemon with only possible encounters in RBY, like the legendary birds pkm.TradebackStatus = TradebackType.WasTradeback;