Abort legality check if not gen6

This commit is contained in:
Kaphotics 2016-03-11 19:57:33 -08:00
parent c4612e2d9f
commit 20257ffc32

View file

@ -109,6 +109,9 @@ namespace PKHeX
public string Report => getLegalityReport();
private string getLegalityReport()
{
if (!pk6.Gen6)
return "Analysis only implemented for X/Y & OR/AS.";
EC = LegalityCheck.verifyECPID(pk6);
Nickname = LegalityCheck.verifyNickname(pk6);
PID = LegalityCheck.verifyECPID(pk6);