aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorQAston <none@none>2009-02-11 22:59:02 +0100
committerQAston <none@none>2009-02-11 22:59:02 +0100
commitc4fa6a5d54adbb76b5c7fd4a27d2a453149a30c9 (patch)
treebe9b1722c49a843178840e8db0074977e193ca97 /src/game
parent376788d761a2f06c7ceb6437fab801cee0c9abab (diff)
*Allow creatures to have up to 8 spells in creature_template.
--HG-- branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r--src/game/Creature.cpp2
-rw-r--r--src/game/Unit.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 87dc3674601..b87540e1802 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -153,7 +153,7 @@ m_meleeDamageSchoolMask(SPELL_SCHOOL_MASK_NORMAL),m_creatureInfo(NULL), m_DBTabl
m_regenTimer = 200;
m_valuesCount = UNIT_END;
- for(int i =0; i<4; ++i)
+ for(int i =0; i<CREATURE_MAX_SPELLS; ++i)
m_spells[i] = 0;
m_CreatureSpellCooldowns.clear();
diff --git a/src/game/Unit.h b/src/game/Unit.h
index eb8041dd672..9ed85ca9cc3 100644
--- a/src/game/Unit.h
+++ b/src/game/Unit.h
@@ -219,7 +219,7 @@ enum UnitRename
UNIT_RENAME_ALLOWED = 0x03
};
-#define CREATURE_MAX_SPELLS 4
+#define CREATURE_MAX_SPELLS 8
enum Swing
{