mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-18 01:56:34 -05:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user