public static void setPKMtoDestination(SaveFile SAV, PKM pk) { int o = slotDestinationOffset; if (!DestinationParty) { SAV.setStoredSlot(pk, o); return; } if (30 + SAV.PartyCount < slotDestinationSlotNumber) { o = SAV.getPartyOffset(SAV.PartyCount); 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); }