mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-21 14:54:16 -05:00
Handle gen1/2 static encounters
levelup starts after initial moves
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
@@ -148,6 +149,8 @@ public PKM ConvertToPKM(ITrainerInfo SAV)
|
||||
this.CopyContestStatsTo(pk);
|
||||
|
||||
var moves = Moves ?? Legal.GetEncounterMoves(pk, level, version);
|
||||
if (pk.Format == 1 && moves.All(z => z == 0))
|
||||
moves = (PersonalTable.RB[Species] as PersonalInfoG1).Moves;
|
||||
pk.Moves = moves;
|
||||
pk.SetMaximumPPCurrent(moves);
|
||||
if (pk.Format >= 6 && Relearn != null)
|
||||
|
||||
Reference in New Issue
Block a user