mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-11 14:14:57 -05:00
Handle gen1/2 static encounters
levelup starts after initial moves
This commit is contained in:
parent
39f1805940
commit
547c799eeb
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user