Core/AI: Implemented conversation ai
Port From (https://github.com/TrinityCore/TrinityCore/commit/309ba22a15e5e0b4321b99f7157ccb18e0adc8dd)
This commit is contained in:
@@ -110,5 +110,14 @@ namespace Game.AI
|
||||
_ => new GameObjectAI(go),
|
||||
};
|
||||
}
|
||||
|
||||
public static ConversationAI SelectConversationAI(Conversation conversation)
|
||||
{
|
||||
ConversationAI ai = Global.ScriptMgr.GetConversationAI(conversation);
|
||||
if ( ai != null)
|
||||
return ai;
|
||||
|
||||
return new NullConversationAI(conversation, Global.ObjectMgr.GetScriptId("NullConversationAI", false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user