mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
* *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");
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user