summaryrefslogtreecommitdiffstats
path: root/sigmod/Nature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/Nature.cpp')
-rw-r--r--sigmod/Nature.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/sigmod/Nature.cpp b/sigmod/Nature.cpp
index fe268b74..487bbfdc 100644
--- a/sigmod/Nature.cpp
+++ b/sigmod/Nature.cpp
@@ -64,16 +64,16 @@ void Sigmod::Nature::validate()
TEST_BEGIN();
if (m_name.isEmpty())
emit(error("Name is empty"));
- TEST_ARRAY_INDEX(stat, ST_Attack);
- TEST_ARRAY_INDEX(stat, ST_Defense);
- TEST_ARRAY_INDEX(stat, ST_Speed);
+ TEST_ARRAY_INDEX_OFF(stat, ST_Attack, ST_Attack);
+ TEST_ARRAY_INDEX_OFF(stat, ST_Defense, ST_Attack);
+ TEST_ARRAY_INDEX_OFF(stat, ST_Speed, ST_Attack);
if (sigmod()->rules()->specialSplit())
{
- TEST_ARRAY_INDEX(stat, ST_SpecialAttack);
- TEST_ARRAY_INDEX(stat, ST_SpecialDefense);
+ TEST_ARRAY_INDEX_OFF(stat, ST_SpecialAttack, ST_Attack);
+ TEST_ARRAY_INDEX_OFF(stat, ST_SpecialDefense, ST_Attack);
}
else
- TEST_ARRAY_INDEX(stat, ST_Special);
+ TEST_ARRAY_INDEX_OFF(stat, ST_Special, ST_Attack);
TEST(weight);
TEST_END();
}