mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
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:
parent
9b4ab99d4f
commit
61dd99feef
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue