set gigantamax flag from showdown set (#2469)

This commit is contained in:
Archit Date
2019-11-20 07:57:08 +08:00
committed by Kurt
parent ea80718919
commit 686f69484d

View File

@@ -367,6 +367,9 @@ public static void ApplySetDetails(this PKM pk, ShowdownSet Set)
b.ResetCalculatedValues();
}
}
if (pk is IGigantamax c)
c.CanGigantamax = Set.CanGigantamax;
var legal = new LegalityAnalysis(pk);
if (legal.Parsed && legal.Info.Relearn.Any(z => !z.Valid))