diff --git a/pk2pk.cs b/pk2pk.cs index bdd910d46..63063e27d 100644 --- a/pk2pk.cs +++ b/pk2pk.cs @@ -412,6 +412,11 @@ public byte[] convertPK4toPK5(byte[] pk4) // Reset Friendship pk5[0x14] = (byte)getBaseFriendship(species); + // Fix Level + pk5[0x84] &= 0x80; + uint exp = BitConverter.ToUInt32(pk5, 0x10); + pk5[0x84] |= (byte)getLevel(species, exp); + // Fix Checksum ushort chk = 0; for (int i = 8; i < 136; i += 2) // Loop through the entire PKX