From 706a9f25554ec06063d8b0aab51f63c99ae89fdd Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 29 Apr 2019 17:35:31 -0700 Subject: [PATCH] Disallow setting EVs for pb7 via label click shortcut apply AVs instead --- PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs index 891f7c1fb..cb4c3ac85 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/StatEditor.cs @@ -258,8 +258,17 @@ 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); - MT_EVs[index].Text = value.ToString(); + 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 {