public static void setPKMtoSource(SaveFile SAV, PKM pk) { int o = slotSourceOffset; if (!SourceParty) { SAV.setStoredSlot(pk, o); return; } if (pk.Species == 0) // Empty Slot { 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); }