Core/AI: Implemented conversation ai

Port From (https://github.com/TrinityCore/TrinityCore/commit/309ba22a15e5e0b4321b99f7157ccb18e0adc8dd)
This commit is contained in:
Hondacrx
2025-05-19 17:23:36 -04:00
parent 4f63e81373
commit e44861a629
10 changed files with 160 additions and 126 deletions
+9
View File
@@ -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));
}
}
}