mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -929,7 +929,7 @@ namespace PKHeX.Core
|
|||
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 a new issue