mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Disallow setting EVs for pb7 via label click shortcut
apply AVs instead
This commit is contained in:
parent
300ef4d60a
commit
706a9f2555
1 changed files with 11 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue