diff options
author | ModoX <moardox@gmail.com> | 2024-12-28 23:25:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-28 23:25:10 +0100 |
commit | 309ba22a15e5e0b4321b99f7157ccb18e0adc8dd (patch) | |
tree | f40e4b0b27df733b348144b3813b932f8aeb3268 /src/server/game/Handlers | |
parent | d8bcf5fcb655d9931f7c74883ca19c0428e2a8ae (diff) |
Core/AI: Implemented conversation ai (#30538)
Diffstat (limited to 'src/server/game/Handlers')
-rw-r--r-- | src/server/game/Handlers/MiscHandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Handlers/MiscHandler.cpp b/src/server/game/Handlers/MiscHandler.cpp index 451526e1cf8..189e40cdca8 100644 --- a/src/server/game/Handlers/MiscHandler.cpp +++ b/src/server/game/Handlers/MiscHandler.cpp @@ -27,6 +27,7 @@ #include "ClientConfigPackets.h" #include "Common.h" #include "Conversation.h" +#include "ConversationAI.h" #include "Corpse.h" #include "DatabaseEnv.h" #include "DB2Stores.h" @@ -1164,8 +1165,8 @@ void WorldSession::HandleCloseInteraction(WorldPackets::Misc::CloseInteraction& void WorldSession::HandleConversationLineStarted(WorldPackets::Misc::ConversationLineStarted& conversationLineStarted) { - if (Conversation* convo = ObjectAccessor::GetConversation(*_player, conversationLineStarted.ConversationGUID)) - sScriptMgr->OnConversationLineStarted(convo, conversationLineStarted.LineID, _player); + if (Conversation* conversation = ObjectAccessor::GetConversation(*_player, conversationLineStarted.ConversationGUID)) + conversation->AI()->OnLineStarted(conversationLineStarted.LineID, _player); } void WorldSession::HandleRequestLatestSplashScreen(WorldPackets::Misc::RequestLatestSplashScreen& /*requestLatestSplashScreen*/) |