mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
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:
parent
3d87070cc8
commit
9cd6d34f1d
1 changed files with 2 additions and 1 deletions
|
@ -357,7 +357,8 @@ namespace PKHeX.Core
|
||||||
if (abilities[0] == abilities[1]) // Not a dual ability
|
if (abilities[0] == abilities[1]) // Not a dual ability
|
||||||
{
|
{
|
||||||
// Must not have the Ability bit flag set.
|
// 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);
|
return GetInvalid(LAbilityMismatchFlag, CheckIdentifier.PID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue