mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Set pkm Stat Level when transferred to CK3/XK3
Closes #1302 Box structure in CK3/XK3 stores stats AND level, as battle stats are a part of the box structure. There's no party/box differentiation!
This commit is contained in:
parent
33dff69fb2
commit
267de164f4
1 changed files with 2 additions and 0 deletions
|
@ -846,6 +846,7 @@ namespace PKHeX.Core
|
|||
var pk = new CK3();
|
||||
TransferPropertiesWithReflection(this, pk);
|
||||
pk.SetStats(GetStats(PersonalTable.RS[pk.Species]));
|
||||
pk.Stat_Level = pk.CurrentLevel;
|
||||
return pk;
|
||||
}
|
||||
/// <summary>
|
||||
|
@ -861,6 +862,7 @@ namespace PKHeX.Core
|
|||
var pk = new XK3();
|
||||
TransferPropertiesWithReflection(this, pk);
|
||||
pk.SetStats(GetStats(PersonalTable.RS[pk.Species]));
|
||||
pk.Stat_Level = pk.CurrentLevel;
|
||||
return pk;
|
||||
}
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue