mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 20:13:06 +00:00
Invalid IV prevention
prevent export with invalid IVs
This commit is contained in:
parent
9927da275f
commit
10e95228eb
1 changed files with 2 additions and 1 deletions
|
@ -6638,10 +6638,11 @@ namespace PKHeX
|
||||||
MaskedTextBox[] tba = new MaskedTextBox[]
|
MaskedTextBox[] tba = new MaskedTextBox[]
|
||||||
{
|
{
|
||||||
TB_HPEV,TB_ATKEV,TB_DEFEV,TB_SPAEV,TB_SPDEV,TB_SPEEV,
|
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++)
|
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;
|
tabMain.SelectedIndex = 2;
|
||||||
goto invalid;
|
goto invalid;
|
||||||
|
|
Loading…
Reference in a new issue