Check if the specified move is valid as Sketch move

This commit is contained in:
Oliver Garcia 2016-05-10 17:03:51 +01:00
parent e6b6005fc9
commit 9a37eda9ba

View file

@ -376,6 +376,8 @@ namespace PKHeX
}
internal static bool getCanKnowMove(PK6 pk6, int move, int version = -1)
{
if (pk6.Species == 235 && !Legal.InvalidSketch.Contains(move))
return true;
return getValidMoves(pk6, Version: version, LVL: true, Relearn: true, Tutor: true, Machine: true).Contains(move);
}