From faab067f80463285376155ece37434c56efcc9d2 Mon Sep 17 00:00:00 2001 From: ReignOfComputer Date: Thu, 1 Mar 2018 00:58:04 +0800 Subject: [PATCH] Fix Inverted Max PP Shortcut (#1855) https://github.com/kwsch/PKHeX/issues/1854#issuecomment-369270152 --- PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs index abcb31597..4ec451ba6 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -536,10 +536,10 @@ private void ClickGender(object sender, EventArgs e) } private void ClickPPUps(object sender, EventArgs e) { - CB_PPu1.SelectedIndex = ModifierKeys.HasFlag(Keys.Control) && WinFormsUtil.GetIndex(CB_Move1) > 0 ? 3 : 0; - CB_PPu2.SelectedIndex = ModifierKeys.HasFlag(Keys.Control) && WinFormsUtil.GetIndex(CB_Move2) > 0 ? 3 : 0; - CB_PPu3.SelectedIndex = ModifierKeys.HasFlag(Keys.Control) && WinFormsUtil.GetIndex(CB_Move3) > 0 ? 3 : 0; - CB_PPu4.SelectedIndex = ModifierKeys.HasFlag(Keys.Control) && WinFormsUtil.GetIndex(CB_Move4) > 0 ? 3 : 0; + CB_PPu1.SelectedIndex = !ModifierKeys.HasFlag(Keys.Control) && WinFormsUtil.GetIndex(CB_Move1) > 0 ? 3 : 0; + CB_PPu2.SelectedIndex = !ModifierKeys.HasFlag(Keys.Control) && WinFormsUtil.GetIndex(CB_Move2) > 0 ? 3 : 0; + CB_PPu3.SelectedIndex = !ModifierKeys.HasFlag(Keys.Control) && WinFormsUtil.GetIndex(CB_Move3) > 0 ? 3 : 0; + CB_PPu4.SelectedIndex = !ModifierKeys.HasFlag(Keys.Control) && WinFormsUtil.GetIndex(CB_Move4) > 0 ? 3 : 0; } private void ClickMarking(object sender, EventArgs e) {