mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-26 16:25:24 -05:00
Only screen gen6 for legality
Main window only checks legality for gen6, Database currently ignores this restriction and runs the check anyway (unnecessary).
This commit is contained in:
@@ -533,9 +533,9 @@ private void B_Search_Click(object sender, EventArgs e)
|
||||
slotSelected = -1; // reset the slot last viewed
|
||||
|
||||
if (Menu_SearchLegal.Checked && !Menu_SearchIllegal.Checked) // Legal Only
|
||||
res = res.Where(pk => new LegalityAnalysis(pk).Valid);
|
||||
res = res.Where(pk => pk.Gen6 && new LegalityAnalysis(pk).Valid);
|
||||
if (!Menu_SearchLegal.Checked && Menu_SearchIllegal.Checked) // Illegal Only
|
||||
res = res.Where(pk => !new LegalityAnalysis(pk).Valid);
|
||||
res = res.Where(pk => pk.Gen6 && !new LegalityAnalysis(pk).Valid);
|
||||
|
||||
var results = res.ToArray();
|
||||
if (results.Length == 0)
|
||||
|
||||
Reference in New Issue
Block a user