Skip to content

Commit

Permalink
Add Smeargle exception
Browse files Browse the repository at this point in the history
This boy can learn any HM move through Sketch so any memory regarding HMs is legal for him.
  • Loading branch information
Eskuero committed May 8, 2016
1 parent 2b364f0 commit 2840e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Legality/Checks.cs
Expand Up @@ -652,7 +652,7 @@ private LegalityCheck verifyCommonMemory(int handler)
break;
}
int matchingMoveMemory = Array.IndexOf(Legal.MoveSpecificMemories[0], m);
if (matchingMoveMemory != -1 && !Legal.isValidMachineMove(pk6, Legal.MoveSpecificMemories[1][matchingMoveMemory]))
if (matchingMoveMemory != -1 && pk6.Species != 235 && !Legal.isValidMachineMove(pk6, Legal.MoveSpecificMemories[1][matchingMoveMemory]))
{
return new LegalityCheck(Severity.Invalid, resultPrefix + "Memory: Species cannot learn this move.");
}
Expand Down

0 comments on commit 2840e46

Please sign in to comment.