*Allow creatures to have up to 8 spells in creature_template.
--HG-- branch : trunk
This commit is contained in:
1 parent
376788d761
commit
c4fa6a5d54
5 files changed
+9
-5
No files matched your search
@@ -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]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user