Minor fixes

Replace hardcoded move int with enum val
Lillipup->Rockruff
personal_swsh: remove pledge bitflags (missed in CT update)
This commit is contained in:
Kurt 2021-09-06 15:38:32 -07:00
parent 41b1aaeb19
commit 5a9e1417bf
3 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ namespace PKHeX.Core
private static GameVersion GetIsTutor1(PKM pkm, int species, int move)
{
// Surf Pikachu via Stadium
if (move != 57 || ParseSettings.AllowGBCartEra)
if (move != (int)Move.Surf || ParseSettings.AllowGBCartEra)
return NONE;
if (pkm.Format < 3 && species is (int)Species.Pikachu or (int)Species.Raichu)
return GameVersion.Stadium;

View file

@ -140,7 +140,7 @@ namespace PKHeX.Core
}
// Form doesn't exist in SM; cannot originate from that game.
case Lillipup when enc.Generation == 7 && form == 1 && pkm.SM:
case Rockruff when enc.Generation == 7 && form == 1 && pkm.SM:
case Lycanroc when enc.Generation == 7 && form == 2 && pkm.SM:
return GetInvalid(LFormInvalidGame);