mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Update FormVerifier.cs
This commit is contained in:
parent
f61108ac4e
commit
45f12bd924
1 changed files with 2 additions and 1 deletions
|
@ -76,9 +76,10 @@ namespace PKHeX.Core
|
|||
int arceus = GetArceusFormFromHeldItem(pkm.HeldItem, pkm.Format);
|
||||
return arceus != form ? GetInvalid(LFormItemInvalid) : GetValid(LFormItem);
|
||||
}
|
||||
case Keldeo when pkm.Format < 8 && enc.Generation != 5:
|
||||
case Keldeo when enc.Generation != 5 || pkm.Format >= 8:
|
||||
// can mismatch in gen5 via BW tutor and transfer up
|
||||
// can mismatch in gen8+ as the form activates in battle when knowing the move; outside of battle can be either state.
|
||||
// Generation 8 patched out the mismatch; always forced to match moves.
|
||||
bool hasSword = pkm.HasMove((int) Move.SecretSword);
|
||||
bool isSword = pkm.Form == 1;
|
||||
if (isSword != hasSword)
|
||||
|
|
Loading…
Reference in a new issue