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:
Kurt 2020-02-13 16:35:37 -08:00
parent 92b22b9f44
commit 3ce590aca8

View file

@ -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