From 9002d882b21b3715f5034bc8add5a0871138242b Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 6 Apr 2017 21:23:08 -0700 Subject: [PATCH] Misc cleanup allowInherited was always false as SpecialMoves is never null (?? new int[0]) --- PKHeX/Legality/Checks.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PKHeX/Legality/Checks.cs b/PKHeX/Legality/Checks.cs index cb6cffa9d..688480e27 100644 --- a/PKHeX/Legality/Checks.cs +++ b/PKHeX/Legality/Checks.cs @@ -2544,9 +2544,9 @@ namespace PKHeX.Core { if (pkm.IsEgg) { - int[] SpecialMoves = (EncounterMatch as IMoveset)?.Moves ?? new int[0]; - var allowinherited = SpecialMoves == null && !pkm.WasGiftEgg && !pkm.WasEventEgg && !MatchIsMysteryGift; - return parseMovesIsEggPreRelearn(Moves, SpecialMoves, allowinherited); + int[] SpecialMoves = (EncounterMatch as IMoveset)?.Moves; + var allowinherited = SpecialMoves == null; + return parseMovesIsEggPreRelearn(Moves, SpecialMoves ?? new int[0], allowinherited); } if (pkm.WasEgg) return parseMovesWasEggPreRelearn(Moves, validLevelMoves, validTMHM, validTutor);