Disable catch rate updating on pk1->pk2 xfr

Closes #1414
This commit is contained in:
Kurt 2017-08-24 10:08:01 -07:00
parent 261349c90f
commit c2124a4bbd
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ namespace PKHeX.Core
Data[0] = (byte)SpeciesConverter.SetG1Species(value);
// Before updating catch rate, check if non-standard
if (!CatchRateIsItem)
if (TradebackStatus != TradebackType.WasTradeback && !CatchRateIsItem)
{
int baseSpecies = Legal.GetBaseSpecies(this);
int Rate = Catch_Rate;

View file

@ -348,7 +348,7 @@ namespace PKHeX.Core
public PK1 ConvertToPK1()
{
PK1 pk1 = new PK1(null, Identifier, Japanese);
PK1 pk1 = new PK1(null, Identifier, Japanese) {TradebackStatus = TradebackType.WasTradeback};
Array.Copy(Data, 0x1, pk1.Data, 0x7, 0x1A);
pk1.Species = Species; // This will take care of Typing :)
pk1.Stat_HPCurrent = Stat_HPCurrent;