edge case for egg OT name length

https://projectpokemon.org/home/forums/topic/48802-bugemerald-eggs-crystal-learnsets/
This commit is contained in:
Kurt 2018-12-14 23:30:21 -08:00
parent 6dbeb24b6f
commit 5d5259ddd2
2 changed files with 1 additions and 1 deletions

View file

@ -83,7 +83,7 @@ namespace PKHeX.Core
{
if (e is WC3 wc3 && pkm.IsEgg && wc3.OT_Name == ot)
return true; // Fixed OT Mystery Gift Egg
bool eggEdge = pkm.IsEgg ? pkm.IsTradedEgg : pkm.WasTradedEgg;
bool eggEdge = pkm.IsEgg ? pkm.IsTradedEgg || pkm.Format == 3 : pkm.WasTradedEgg;
if (!eggEdge)
return false;
var len = Legal.GetMaxLengthOT(pkm.GenNumber, LanguageID.English); // max case