Flag Legality of Battle Primals

Mark as illegal.

Thanks Asia81!
This commit is contained in:
Kaphotics 2016-06-29 17:42:00 -07:00
parent d8ed96fd69
commit fa9ca3ea59
2 changed files with 2 additions and 1 deletions

View file

@ -807,7 +807,7 @@ namespace PKHeX
break;
}
return pk6.AltForm > 0 && (Legal.BattleForms.Contains(pk6.Species) || Legal.BattleMegas.Contains(pk6.Species))
return pk6.AltForm > 0 && new[] {Legal.BattleForms, Legal.BattleMegas, Legal.BattlePrimals}.Any(arr => arr.Contains(pk6.Species))
? new LegalityCheck(Severity.Invalid, "Form cannot exist outside of a battle.")
: new LegalityCheck();
}

View file

@ -488,6 +488,7 @@ namespace PKHeX
531,
719
};
internal static readonly int[] BattlePrimals = {382, 383};
internal static readonly string[][] TradeXY =
{
new string[0], // 0 - None