mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 02:35:04 -05:00
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:
@@ -27,7 +27,7 @@ public static GameVersion GetIsTutorMove(PKM pkm, int species, int form, int gen
|
||||
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;
|
||||
|
||||
@@ -140,7 +140,7 @@ private CheckResult VerifyForm(LegalityAnalysis data)
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user