mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
parent
efe77e3b5c
commit
b81cad84ab
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ namespace PKHeX.Core
|
|||
if (pk is PK5 pk5 && abilIndex == 2)
|
||||
pk5.HiddenAbility = true;
|
||||
else if (pk.Format <= 5)
|
||||
pk.PID = PKX.GetRandomPID(pk.Species, pk.Gender, pk.Version, pk.Nature, pk.Format, (uint)(abilIndex * 0x10001));
|
||||
pk.PID = PKX.GetRandomPID(pk.Species, pk.Gender, pk.Version, pk.Nature, pk.AltForm, (uint)(abilIndex * 0x10001));
|
||||
pk.RefreshAbility(abilIndex);
|
||||
}
|
||||
|
||||
|
|
|
@ -784,7 +784,7 @@ namespace PKHeX.WinForms.Controls
|
|||
else if (sender == BTN_RerollPID)
|
||||
pkm.SetPIDGender(pkm.Gender);
|
||||
else if (sender == CB_Ability && CB_Ability.SelectedIndex != pkm.PIDAbility && pkm.PIDAbility > -1)
|
||||
pkm.PID = PKX.GetRandomPID(pkm.Species, pkm.Gender, pkm.Version, pkm.Nature, pkm.Format, (uint)(CB_Ability.SelectedIndex * 0x10001));
|
||||
pkm.PID = PKX.GetRandomPID(pkm.Species, pkm.Gender, pkm.Version, pkm.Nature, pkm.AltForm, (uint)(CB_Ability.SelectedIndex * 0x10001));
|
||||
|
||||
TB_PID.Text = pkm.PID.ToString("X8");
|
||||
SetIsShiny(null);
|
||||
|
|
Loading…
Reference in a new issue