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.
This commit is contained in:
Kurt
2026-07-15 08:53:09 -05:00
parent 572b4e26fd
commit a262ea9f3d

View File

@@ -25,7 +25,7 @@ public sealed class BK4 : G4PKM
protected override void EncryptStored(Span<byte> stored) => PokeCrypto.Encrypt4BE(stored);
protected override void EncryptParty(Span<byte> 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<byte> data) : base(data)
{