Disallow setting EVs for pb7 via label click shortcut

apply AVs instead
This commit is contained in:
Kurt 2019-04-29 17:35:31 -07:00
parent 300ef4d60a
commit 706a9f2555

View file

@ -258,9 +258,18 @@ namespace PKHeX.WinForms.Controls
int index = Array.IndexOf(L_Stats, sender as Label);
if (ModifierKeys.HasFlag(Keys.Alt)) // EV
{
var value = e.Button != MouseButtons.Left ? 0 : pkm.GetMaximumEV(index);
bool min = e.Button != MouseButtons.Left;
if (pkm is PB7)
{
var value = min ? 0 : 200;
MT_AVs[index].Text = value.ToString();
}
else
{
var value = min ? 0 : pkm.GetMaximumEV(index);
MT_EVs[index].Text = value.ToString();
}
}
else if (ModifierKeys.HasFlag(Keys.Control)) // IV
{
var value = e.Button != MouseButtons.Left ? 0 : pkm.GetMaximumIV(index, true);