* *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:
@@ -75,18 +75,6 @@ namespace FactorySelector
|
|||||||
ai_factory = ai_registry.GetRegistryItem("CritterAI");
|
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
|
// select by permit check
|
||||||
if(!ai_factory)
|
if(!ai_factory)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user