Set gender for gen3-5 reroll

#2012
This commit is contained in:
Kurt 2018-06-16 13:27:50 -07:00
parent b81cad84ab
commit cb0ae14a50

View file

@ -223,11 +223,18 @@ namespace PKHeX.Core
{
gender = Math.Min(2, Math.Max(0, gender));
if (pk.Format <= 2)
{
pk.SetATKIVGender(gender);
else if (pk.Format <= 4)
}
else if (pk.Format <= 5)
{
pk.SetPIDGender(gender);
else
pk.Gender = gender;
}
else
{
pk.Gender = gender;
}
}
/// <summary>