From 08222a7f01fdc9d280d78f5e5acfaf8cd906d96c Mon Sep 17 00:00:00 2001 From: Brian Date: Sun, 27 Dec 2009 17:27:39 -0700 Subject: * *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 --- src/game/CreatureAISelector.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/game/CreatureAISelector.cpp') diff --git a/src/game/CreatureAISelector.cpp b/src/game/CreatureAISelector.cpp index 83975c0fc7d..4421eef7ee2 100644 --- a/src/game/CreatureAISelector.cpp +++ b/src/game/CreatureAISelector.cpp @@ -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) { -- cgit v1.2.3