Kurt 2022-08-31 20:41:05 -07:00
parent 88ac14946d
commit 125d18e2be

View file

@ -73,9 +73,9 @@ public sealed class LearnSource2GS : ILearnSource, IEggSource
if (!TryGetPersonal(evo.Species, evo.Form, out var pi))
return;
bool removeVC = pk.Format == 1 || pk.VC1;
if (types.HasFlagFast(MoveSourceType.LevelUp))
{
bool removeVC = pk.Format == 1 || pk.VC1;
var learn = GetLearnset(evo.Species, evo.Form);
var min = ParseSettings.AllowGen2MoveReminder(pk) ? 1 : evo.LevelMin;
(bool hasMoves, int start, int end) = learn.GetMoveRange(evo.LevelMax, min);
@ -98,7 +98,11 @@ public sealed class LearnSource2GS : ILearnSource, IEggSource
for (int i = 0; i < moves.Length; i++)
{
if (flags[i])
result[moves[i]] = true;
{
var move = moves[i];
if (!removeVC || move < Legal.MaxMoveID_1)
result[move] = true;
}
}
}
}