mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 16:26:49 -05:00
Update PK5.cs
don't count sinnoh champ in battle ribbon sum
This commit is contained in:
@@ -506,7 +506,7 @@ public PK6 ConvertToPK6()
|
||||
|
||||
private static byte CountBattleRibbons(ReadOnlySpan<byte> 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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user