* *FINALLY* removed the nasty nasty hack where the core would cast spells if

* any were listed in creature_template.spellid[1-8]
* Creatures should only cast spells if they have a script.

--HG--
branch : trunk
This commit is contained in:
Brian
2009-12-27 17:27:39 -07:00
parent 2ba1a48dd4
commit 08222a7f01

View File

@@ -75,18 +75,6 @@ namespace FactorySelector
ai_factory = ai_registry.GetRegistryItem("CritterAI");
}
if(!ai_factory)
{
for (uint32 i = 0; i < CREATURE_MAX_SPELLS; ++i)
{
if(creature->m_spells[i])
{
ai_factory = ai_registry.GetRegistryItem("CombatAI");
break;
}
}
}
// select by permit check
if(!ai_factory)
{