mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 08:55:24 -05:00
use savefile to calc stats rather than pk's
dropping deoxys into party in fr/lg saves used the rs base stats.
This commit is contained in:
@@ -4383,7 +4383,7 @@ 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(pk.PersonalInfo));
|
||||
pk.setStats(pk.getStats(SAV.Personal.getFormeEntry(pk.Species, pk.AltForm)));
|
||||
SAV.setPartySlot(pk, o);
|
||||
}
|
||||
public static void setPKMtoDestination(SaveFile SAV, PKM pk)
|
||||
@@ -4398,7 +4398,7 @@ 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(pk.PersonalInfo));
|
||||
pk.setStats(pk.getStats(SAV.Personal.getFormeEntry(pk.Species, pk.AltForm)));
|
||||
SAV.setPartySlot(pk, o);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user