From f9e2fe2f0be114b505577f0572ad4060b48dcdd3 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 28 Nov 2014 20:52:05 -0800 Subject: [PATCH] Wondercard updates --- SAV/SAV_Wondercard.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SAV/SAV_Wondercard.cs b/SAV/SAV_Wondercard.cs index 0d39dbe28..9a9e0bd73 100644 --- a/SAV/SAV_Wondercard.cs +++ b/SAV/SAV_Wondercard.cs @@ -33,6 +33,7 @@ namespace PKHeX public int savindex; public bool editing = false; private int wcoffset = 0x21100; + private uint herpesval = 0x225D73C2; // Repopulation Functions private void populateWClist() @@ -161,7 +162,7 @@ namespace PKHeX if (m_parent.savegame_oras) // ORAS Only if (BitConverter.ToUInt16(wondercard_data, 0) == 0x800) // Eon Ticket # if (BitConverter.ToUInt16(wondercard_data, 0x68) == 0x2D6) // Eon Ticket - Array.Copy(BitConverter.GetBytes(0x225D73C2), 0, sav, 0x319B8 + 0x5400 + savindex * 0x7F000, 4); + Array.Copy(BitConverter.GetBytes(herpesval), 0, sav, 0x319B8 + 0x5400 + savindex * 0x7F000, 4); Array.Copy(wondercard_data, 0, sav, offset, 0x108); populateWClist(); int cardID = BitConverter.ToUInt16(wondercard_data, 0);