mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-01 00:09:14 +00:00
Flag Legality of Battle Primals
Mark as illegal. Thanks Asia81!
This commit is contained in:
parent
d8ed96fd69
commit
fa9ca3ea59
2 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue