Disregard ability bit checks if was shadow

only really pertains to xk3/ck3 and this doesn't really impact legality once transferred
This commit is contained in:
Kurt
2020-12-02 21:40:35 -08:00
parent 3d87070cc8
commit 9cd6d34f1d

View File

@@ -357,7 +357,8 @@ private CheckResult CheckMatch(PKM pkm, IReadOnlyList<int> abilities, int gen, A
if (abilities[0] == abilities[1]) // Not a dual ability
{
// Must not have the Ability bit flag set.
if (abit)
// Some shadow stuff with single-ability might have the flag set anyways?
if (abit && !(pkm is IShadowPKM s && s.ShadowID != 0))
return GetInvalid(LAbilityMismatchFlag, CheckIdentifier.PID);
}
else