Add gen3 wc3 fixed OT egg length case

unhatched egg:
https://projectpokemon.org/home/forums/topic/48226-pichu-event-ilegal/
This commit is contained in:
Kurt 2018-11-03 12:44:03 -07:00
parent daf41da91b
commit d5c22b1e51

View File

@ -81,6 +81,8 @@ public static bool IsEdgeCaseLength(PKM pkm, IEncounterable e, string ot)
{
if (e.EggEncounter)
{
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;
if (!eggEdge)
return false;