From 10e95228ebd77031344349101e9e570eb3b3f264 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 20 Jul 2014 12:41:30 -0700 Subject: [PATCH] Invalid IV prevention prevent export with invalid IVs --- f1-Main.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/f1-Main.cs b/f1-Main.cs index 90cd9f099..9b272d017 100644 --- a/f1-Main.cs +++ b/f1-Main.cs @@ -6638,10 +6638,11 @@ namespace PKHeX MaskedTextBox[] tba = new MaskedTextBox[] { TB_HPEV,TB_ATKEV,TB_DEFEV,TB_SPAEV,TB_SPDEV,TB_SPEEV, + TB_HPIV,TB_ATKIV,TB_DEFIV,TB_SPAIV,TB_SPDIV,TB_SPEIV, }; for (int i = 0; i < 6; i++) { - if (ToInt32(tba[i].Text) > 252) + if ((ToInt32(tba[i].Text) > 252) || (ToInt32(tba[i+6].Text) > 31)) { tabMain.SelectedIndex = 2; goto invalid;