Handle gen1/2 static encounters

levelup starts after initial moves
This commit is contained in:
Kurt 2018-04-02 17:51:37 -07:00
parent 39f1805940
commit 547c799eeb

View File

@ -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)