mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 15:36:51 -05:00
Use first tera type on set import if unspecified
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user