From 475dc02101149fb7423d850abceca511072adaf2 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 8 Dec 2019 12:08:21 -0800 Subject: [PATCH] Add edge case handling for indeedee shared egg moves #2416 --- .../Legality/Encounters/Verifiers/VerifyCurrentMoves.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs b/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs index 34a09a329..33ad2dbba 100644 --- a/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs +++ b/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs @@ -377,6 +377,11 @@ private static bool GetIsSharedEggMove(PKM pkm, int gen, int move) var entry = (PersonalInfoSWSH)table.GetFormeEntry(pkm.Species, pkm.AltForm); var baseSpecies = entry.BaseSpecies; var baseForm = entry.FormIndex; + + // since we aren't storing entry->seed_poke_index, there's oddballs we can't handle with just personal data (?) + if (pkm.Species == (int) Species.Indeedee) + baseForm = pkm.AltForm; + var egg = MoveEgg.GetEggMoves(pkm, baseSpecies, baseForm, GameVersion.SW); return egg.Contains(move); }