From 3d7967fcfe30cb8aa0b45249e31cf424426d3dae Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 26 Dec 2021 18:22:41 -0800 Subject: [PATCH] Fix recognition for cutecharm Nincada->Shedinja GetGender would return 2, which would abort the Cute Charm check since genderless is not able to be cute-charm'd. https://projectpokemon.org/home/forums/topic/57375-pkhex-new-update-legality-errors-contribution-page/?do=findComment&comment=271537 --- PKHeX.Core/Legality/RNG/MethodFinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/RNG/MethodFinder.cs b/PKHeX.Core/Legality/RNG/MethodFinder.cs index fb9f9ffe5..99cea27c1 100644 --- a/PKHeX.Core/Legality/RNG/MethodFinder.cs +++ b/PKHeX.Core/Legality/RNG/MethodFinder.cs @@ -929,7 +929,7 @@ private static bool IsCuteCharm4Valid(ISpeciesForm encounter, PKM pkm) private static (int Species, int Gender) GetCuteCharmGenderSpecies(PKM pk, uint pid, int currentSpecies) => currentSpecies switch { // Nincada evo chain travels from M/F -> Genderless Shedinja - (int)Species.Shedinja => ((int)Species.Nincada, PKX.GetGenderFromPID(currentSpecies, pid)), + (int)Species.Shedinja => ((int)Species.Nincada, PKX.GetGenderFromPID((int)Species.Nincada, pid)), // These evolved species cannot be encountered with cute charm. // 100% fixed gender does not modify PID; override this with the encounter species for correct calculation.