Check format before trim

Closes #2016
This commit is contained in:
Kurt 2018-06-17 21:01:07 -07:00
parent a6915030ca
commit 7791020cb4

View File

@ -370,7 +370,7 @@ public int[] GetSuggestedMoves(bool tm, bool tutor, bool reminder)
return MoveLevelUp.GetEncounterMoves(pkm, lvl, ver);
}
var evos = Info.EvoChainsAllGens;
if (Info.Generation == 1 && pkm.TradebackStatus == TradebackType.Gen1_NotTradeback)
if (pkm.Format >= 7 && Info.Generation == 1 && pkm.TradebackStatus == TradebackType.Gen1_NotTradeback)
{
// purge vc2 from possible chain
evos = (DexLevel[][])evos.Clone();