From fbafbba0b1264485e88cbd5db11a81b281f6b3ab Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 25 Jan 2017 00:28:16 -0800 Subject: [PATCH] Make 6->7 transfers (mostly) bank accurate. --- PKHeX/PKM/PK6.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PKHeX/PKM/PK6.cs b/PKHeX/PKM/PK6.cs index f709d383a..755d7fb6b 100644 --- a/PKHeX/PKM/PK6.cs +++ b/PKHeX/PKM/PK6.cs @@ -618,7 +618,13 @@ namespace PKHeX.Core pk7.Ability = pk7.PersonalInfo.Abilities[index]; break; } - + + // Bank-accurate data zeroing + for (var i = 0x94; i < 0x9E; i++) pk7.Data[i] = 0; /* Geolocations. */ + for (var i = 0xAA; i < 0xB0; i++) pk7.Data[i] = 0; /* Unused/Amie. */ + for (var i = 0xE4; i < 0xE8; i++) pk7.Data[i] = 0; /* Unused. */ + + // Fix Checksum pk7.RefreshChecksum();