mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Don't clear FormArgument on set to box slot
Closes #2706 removal of isParty prevents the erroneous force-0 behavior Co-Authored-By: Russell Jones <questiondesk@gmail.com>
This commit is contained in:
parent
92b22b9f44
commit
3ce590aca8
1 changed files with 5 additions and 3 deletions
|
@ -207,13 +207,15 @@ namespace PKHeX.Core
|
|||
protected override void SetPartyValues(PKM pkm, bool isParty)
|
||||
{
|
||||
base.SetPartyValues(pkm, isParty);
|
||||
((PK7)pkm).FormArgument = GetFormArgument(pkm, isParty);
|
||||
((PK7)pkm).FormArgument = GetFormArgument(pkm);
|
||||
}
|
||||
|
||||
private static uint GetFormArgument(PKM pkm, bool isParty)
|
||||
private static uint GetFormArgument(PKM pkm)
|
||||
{
|
||||
if (!isParty || pkm.AltForm == 0)
|
||||
if (pkm.AltForm == 0)
|
||||
return 0;
|
||||
// Gen7 allows forms to be stored in the box with the current duration & form
|
||||
// Just cap out the form duration anyways
|
||||
return pkm.Species switch
|
||||
{
|
||||
(int)Species.Furfrou => 5u, // Furfrou
|
||||
|
|
Loading…
Add table
Reference in a new issue