Update record flags on default showdown import

Closes #2511
This commit is contained in:
Kurt
2019-11-24 06:06:08 -08:00
parent 113d16fa5d
commit dd51ed707f

View File

@@ -381,6 +381,9 @@ public static void ApplySetDetails(this PKM pk, ShowdownSet Set)
if (pk is IGigantamax c)
c.CanGigantamax = Set.CanGigantamax;
pk.ClearRecordFlags();
pk.SetRecordFlags(Set.Moves);
var legal = new LegalityAnalysis(pk);
if (legal.Parsed && legal.Info.Relearn.Any(z => !z.Valid))
pk.SetRelearnMoves(legal.GetSuggestedRelearnMoves());