From 974ca70e5fa32a4145ca06f2f07df04213c2704b Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 14 Apr 2017 16:27:21 -0700 Subject: [PATCH] Fix reflective ability bit transfer AbilityNumber is shared between XK3/PK3/CK3 and is the only setter that sets the ability index between the formats. --- PKHeX/PKM/PK3.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX/PKM/PK3.cs b/PKHeX/PKM/PK3.cs index bafde51b1..7381562e1 100644 --- a/PKHeX/PKM/PK3.cs +++ b/PKHeX/PKM/PK3.cs @@ -153,7 +153,7 @@ public PK3(byte[] decryptedData = null, string ident = null) public override int Stat_SPD { get { return BitConverter.ToUInt16(Data, 0x62); } set { BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x62); } } // Generated Attributes - public override int AbilityNumber { get { return 1 << PIDAbility; } set { } } + public override int AbilityNumber { get { return 1 << PIDAbility; } set { AbilityBit = value > 1; } } // 1/2 -> 0/1 public override int PSV => (int)((PID >> 16 ^ PID & 0xFFFF) >> 3); public override int TSV => (TID ^ SID) >> 3; public bool Japanese => IsEgg || Language == 1;