mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 03:07:51 -05: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:
@@ -4390,7 +4390,10 @@ public static void setPKMtoSource(SaveFile SAV, PKM pk)
|
||||
{ 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 @@ public static void setPKMtoDestination(SaveFile SAV, PKM pk)
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user