diff --git a/PKHeX/Legality/Core.cs b/PKHeX/Legality/Core.cs index 50f0c9177..9ef325728 100644 --- a/PKHeX/Legality/Core.cs +++ b/PKHeX/Legality/Core.cs @@ -1277,7 +1277,7 @@ private static IEnumerable getValidEncounterSlots(PKM pkm, Encoun slotMax = slotMax.Clone(); slotMax.Pressure = true; slotMax.Form = pkm.AltForm; - }; + } if (gen >= 6 && !DexNav) { @@ -1557,7 +1557,7 @@ private static IEnumerable getEggMoves(PKM pkm, int species, int formnum) private static IEnumerable getTutorMoves(PKM pkm, int species, int form, bool specialTutors, int generation) { List moves = new List(); - PersonalInfo info = pkm.PersonalInfo; + PersonalInfo info; switch (generation) { case 1: @@ -1576,6 +1576,7 @@ private static IEnumerable getTutorMoves(PKM pkm, int species, int form, bo // // moves.Add(Tutors_B2W2[i][b]); //} case 6: + info = PersonalTable.AO[species]; moves.AddRange(TypeTutor6.Where((t, i) => info.TypeTutors[i])); if ( pkm.InhabitedGeneration(6) && specialTutors && (pkm.AO || !pkm.IsUntraded)) { @@ -1587,6 +1588,7 @@ private static IEnumerable getTutorMoves(PKM pkm, int species, int form, bo } break; case 7: + info = PersonalTable.SM[species]; // Type Tutors -- Pledge moves and High BP moves switched places in G7+ moves.AddRange(TypeTutor7.Where((t, i) => info.TypeTutors[i])); // No special tutors in G7