*Use Null AI for spell click creature as default.
--HG-- branch : trunk
This commit is contained in:
1 parent
a922f36da5
commit
0b9bb3b4ff
1 file changed
+1
-1
@@ -55,7 +55,7 @@ namespace FactorySelector
|
||||
// select by NPC flags
|
||||
if(!ai_factory)
|
||||
{
|
||||
if(creature->isVehicle())
|
||||
if(creature->isVehicle() || creature->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK))
|
||||
ai_factory = ai_registry.GetRegistryItem("NullCreatureAI");
|
||||
else if(creature->isGuard())
|
||||
ai_factory = ai_registry.GetRegistryItem("GuardAI");
|
||||
|
||||
Reference in new issue
Block a user