From f27326cb2e148e410ba88c4b765f35dfbbf0f909 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 20 Mar 2024 23:31:17 -0500 Subject: [PATCH] Update PK5.cs don't count sinnoh champ in battle ribbon sum --- PKHeX.Core/PKM/PK5.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/PKM/PK5.cs b/PKHeX.Core/PKM/PK5.cs index d592f0595..c72408631 100644 --- a/PKHeX.Core/PKM/PK5.cs +++ b/PKHeX.Core/PKM/PK5.cs @@ -506,7 +506,7 @@ public sealed class PK5 : PKM, ISanityChecksum, private static byte CountBattleRibbons(ReadOnlySpan data) { - var bits1 = data[0x24] & 0b0111_1111u; // Battle Ribbons + var bits1 = data[0x24] & 0b0111_1110u; // Battle Ribbons var bits2 = data[0x3E] & 0b0110_0000u; // Winning & Victory Ribbons return (byte)BitOperations.PopCount(bits1 | (bits2 << 2)); }