From aac498a31de2129aa7750320c6cf9ea623f033e3 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 19 Jun 2022 09:26:28 -0700 Subject: [PATCH] Set region values for pk3->c/xk3 Regardless of SetPKM setting, just to make sure the values are populated. Closes #3530 --- PKHeX.Core/PKM/PK3.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/PKM/PK3.cs b/PKHeX.Core/PKM/PK3.cs index b96a9233d..1ebe48030 100644 --- a/PKHeX.Core/PKM/PK3.cs +++ b/PKHeX.Core/PKM/PK3.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using static System.Buffers.Binary.BinaryPrimitives; @@ -342,6 +342,9 @@ public PK4 ConvertToPK4() public XK3 ConvertToXK3() { var pk = ConvertTo(); + // Set these even if the settings don't SetPKM + pk.CurrentRegion = 2; // NTSC-U + pk.OriginalRegion = 2; // NTSC-U pk.ResetPartyStats(); return pk; } @@ -349,6 +352,9 @@ public XK3 ConvertToXK3() public CK3 ConvertToCK3() { var pk = ConvertTo(); + // Set these even if the settings don't SetPKM + pk.CurrentRegion = 2; // NTSC-U + pk.OriginalRegion = 2; // NTSC-U pk.ResetPartyStats(); return pk; }