Ignore keldeo resolute form check on gen8+

can mismatch in gen8+ as the form activates in battle when knowing the move; outside of battle can be either state.
This commit is contained in:
Kurt
2020-02-15 13:30:50 -08:00
parent 9e16df4970
commit 3e4bb9f320

View File

@@ -91,7 +91,9 @@ bool IsValidPikachuCap()
}
case (int)Species.Keldeo:
{
if (Info.Generation == 5) // can mismatch in gen5 via BW tutor and transfer up
// 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.
if (Info.Generation == 5 || pkm.Format >= 8)
break;
int index = Array.IndexOf(pkm.Moves, 548); // Secret Sword
bool noSword = index < 0;