mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
Retain unown form
This commit is contained in:
parent
01341ceeae
commit
cc1d3de1ed
1 changed files with 4 additions and 2 deletions
|
@ -273,14 +273,16 @@ namespace PKHeX
|
|||
pk4.Nickname = IsEgg ? PKM.getSpeciesName(pk4.Species, pk4.Language) : Nickname;
|
||||
Array.Copy(pk4.Data, 0x48, pk4.Data, 0x68, 0x10);
|
||||
pk4.OT_Name = OT_Name;
|
||||
|
||||
// Ribbons
|
||||
|
||||
// Set Final Data
|
||||
pk4.Met_Level = PKX.getLevel(pk4.Species, pk4.EXP);
|
||||
pk4.Gender = PKM.getGender(pk4.Species, pk4.PID);
|
||||
pk4.IsNicknamed |= pk4.Nickname != PKM.getSpeciesName(pk4.Species, pk4.Language);
|
||||
|
||||
// Unown Form
|
||||
if (Species == 201)
|
||||
pk4.AltForm = PKM.getUnownForm(PID);
|
||||
|
||||
// Remove HM moves
|
||||
int[] banned = { 15, 19, 57, 70, 148, 249, 127, 291 };
|
||||
int[] newMoves = pk4.Moves;
|
||||
|
|
Loading…
Reference in a new issue