Manually hardcode incompatible conversion cases for P*8

This commit is contained in:
Kurt
2021-11-20 09:40:38 -08:00
parent 921b151aef
commit baa7bd52a8

View File

@@ -231,6 +231,11 @@ public static bool IsConvertibleToFormat(PKM pk, int format)
if (!AllowIncompatibleConversion || pkm != null)
return pkm;
if (pk is PK8 && destType == typeof(PB8))
return new PB8(pk.Data);
if (pk is PB8 && destType == typeof(PK8))
return new PK8(pk.Data);
// Try Incompatible Conversion
pkm = GetBlank(destType);
pk.TransferPropertiesWithReflection(pkm);