Set current stat level on drag&drop to party

Other battle stats (HP/Atk...) are already set, this is the only one
that is not set. The other setPartySlot call is for the main tabs
editing, which sets the stat level & battle stats at the end of the
specific method.

Closes #663
This commit is contained in:
Kurt 2016-12-22 22:03:32 -08:00
parent 9b4ab99d4f
commit 61dd99feef

View file

@ -4390,7 +4390,10 @@ namespace PKHeX
{ SAV.deletePartySlot(slotSourceSlotNumber-30); return; }
if (pk.Stat_HPMax == 0) // Without Stats (Box)
{
pk.setStats(pk.getStats(SAV.Personal.getFormeEntry(pk.Species, pk.AltForm)));
pk.Stat_Level = pk.CurrentLevel;
}
SAV.setPartySlot(pk, o);
}
public static void setPKMtoDestination(SaveFile SAV, PKM pk)
@ -4405,7 +4408,10 @@ namespace PKHeX
slotDestinationSlotNumber = 30 + SAV.PartyCount;
}
if (pk.Stat_HPMax == 0) // Without Stats (Box/File)
{
pk.setStats(pk.getStats(SAV.Personal.getFormeEntry(pk.Species, pk.AltForm)));
pk.Stat_Level = pk.CurrentLevel;
}
SAV.setPartySlot(pk, o);
}