mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-23 06:26:12 -05:00
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
This commit is contained in:
parent
11039f1119
commit
3d7967fcfe
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user