Core/Conversation: Log error if conversation is started multiple times

Port From (https://github.com/TrinityCore/TrinityCore/commit/a5d2d6e465b619743afa374ff99a7238e685d9e8)
This commit is contained in:
hondacrx
2024-02-05 13:22:12 -05:00
parent 5043b5ca8a
commit 503e010e53
+6
View File
@@ -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;