diff options
Diffstat (limited to 'sigmod/Badge.cpp')
| -rw-r--r-- | sigmod/Badge.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sigmod/Badge.cpp b/sigmod/Badge.cpp index ef6a58f4..1fec4bee 100644 --- a/sigmod/Badge.cpp +++ b/sigmod/Badge.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2007-2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2007-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -72,16 +72,16 @@ void Sigmod::Badge::validate() if (m_face == m_badge) emit(error("Face and badge sprites are the same")); TEST(obey); - 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_END(); } |
