mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-08 15:55:30 -05:00
Manually hardcode incompatible conversion cases for P*8
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user