*Use Null AI for spell click creature as default.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-17 23:28:12 -05:00
parent a922f36da5
commit 0b9bb3b4ff

View File

@@ -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");