mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-13 00:55:26 -05:00
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user