From a262ea9f3d19361dbac986ef54e759a08bee52dc Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 15 Jul 2026 08:53:09 -0500 Subject: [PATCH] Relax sanity flagging Battle Revolution uses more of the sanity flags (probably as quarantine) and the checksum algorithm probably isn't updated/stale. Just ignore it for now. --- PKHeX.Core/PKM/BK4.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/PKM/BK4.cs b/PKHeX.Core/PKM/BK4.cs index 0fc5e85fa..84575c3c9 100644 --- a/PKHeX.Core/PKM/BK4.cs +++ b/PKHeX.Core/PKM/BK4.cs @@ -25,7 +25,7 @@ public sealed class BK4 : G4PKM protected override void EncryptStored(Span stored) => PokeCrypto.Encrypt4BE(stored); protected override void EncryptParty(Span party) { } - public override bool Valid => ChecksumValid || (Sanity == 0 && Species <= MaxSpeciesID); + public override bool Valid => ChecksumValid || ((Sanity == 0 || (Sanity & 0x4000) != 0) && Species <= MaxSpeciesID); public BK4(Memory data) : base(data) {