Invalid IV prevention

prevent export with invalid IVs
This commit is contained in:
Kurt 2014-07-20 12:41:30 -07:00
parent 9927da275f
commit 10e95228eb

View file

@ -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;