From 503e010e5350fad87c40fd03f3c232554f236eb0 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 5 Feb 2024 13:22:12 -0500 Subject: [PATCH] Core/Conversation: Log error if conversation is started multiple times Port From (https://github.com/TrinityCore/TrinityCore/commit/a5d2d6e465b619743afa374ff99a7238e685d9e8) --- Source/Game/Entities/Conversation.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Game/Entities/Conversation.cs b/Source/Game/Entities/Conversation.cs index 40e5e4d80..079ef108a 100644 --- a/Source/Game/Entities/Conversation.cs +++ b/Source/Game/Entities/Conversation.cs @@ -178,6 +178,12 @@ namespace Game.Entities } } + if (IsInWorld) + { + Log.outError(LogFilter.Conversation, $"Attempted to start conversation (Id: {GetEntry()}) multiple times."); + return true; // returning true to not cause delete in Conversation::CreateConversation if convo is already started in ConversationScript::OnConversationCreate + } + if (!GetMap().AddToMap(this)) return false;