*Allow creatures to have up to 8 spells in creature_template.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-02-11 22:59:02 +01:00
parent 376788d761
commit c4fa6a5d54
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -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]);