mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-24 15:14:13 -05:00
edge case for egg OT name length
https://projectpokemon.org/home/forums/topic/48802-bugemerald-eggs-crystal-learnsets/
This commit is contained in:
@@ -83,7 +83,7 @@ public static bool IsEdgeCaseLength(PKM pkm, IEncounterable e, string ot)
|
||||
{
|
||||
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
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user