Core/Conversation: Log error if conversation is started multiple times
Port From (https://github.com/TrinityCore/TrinityCore/commit/a5d2d6e465b619743afa374ff99a7238e685d9e8)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user