From c4fa6a5d54adbb76b5c7fd4a27d2a453149a30c9 Mon Sep 17 00:00:00 2001 From: QAston Date: Wed, 11 Feb 2009 22:59:02 +0100 Subject: *Allow creatures to have up to 8 spells in creature_template. --HG-- branch : trunk --- src/bindings/scripts/include/sc_creature.cpp | 2 +- src/game/Creature.cpp | 2 +- src/game/Unit.h | 2 +- src/shared/Database/SQLStorage.cpp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/bindings/scripts/include/sc_creature.cpp b/src/bindings/scripts/include/sc_creature.cpp index ad266fb37c5..6d68e203352 100644 --- a/src/bindings/scripts/include/sc_creature.cpp +++ b/src/bindings/scripts/include/sc_creature.cpp @@ -464,7 +464,7 @@ SpellEntry const* ScriptedAI::SelectSpell(Unit* Target, int32 School, int32 Mech SpellRangeEntry const* TempRange; //Check if each spell is viable(set it to null if not) - for (uint32 i = 0; i < 4; i++) + for (uint32 i = 0; i < CREATURE_MAX_SPELLS; i++) { TempSpell = GetSpellStore()->LookupEntry(m_creature->m_spells[i]); 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