Use first tera type on set import if unspecified

This commit is contained in:
Kurt
2022-11-29 20:06:35 -08:00
parent a4abd94724
commit 2ae32c6beb

View File

@@ -238,7 +238,10 @@ public static void ApplySetDetails(this PKM pk, IBattleTemplate Set)
if (pk is IDynamaxLevel d)
d.DynamaxLevel = d.GetSuggestedDynamaxLevel(pk, requested: Set.DynamaxLevel);
if (pk is ITeraType tera)
tera.SetTeraType(Set.TeraType);
{
var type = Set.TeraType == MoveType.Any ? (MoveType)pk.PersonalInfo.Type1 : Set.TeraType;
tera.SetTeraType(type);
}
if (pk is ITechRecord t)
{