From f75a110654f7ce21432725fa1f15424ba62bd84e Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 31 Dec 2020 21:04:30 -0500 Subject: [PATCH] Core/Commands: Add optional broadcast text id argument to .debug play sound command Port From (https://github.com/TrinityCore/TrinityCore/commit/d94f0d23b3cbf0944576cfd77fb199453234817b) --- Source/Game/Chat/Commands/DebugCommands.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Game/Chat/Commands/DebugCommands.cs b/Source/Game/Chat/Commands/DebugCommands.cs index 7cb8edf54..0c5cc86ae 100644 --- a/Source/Game/Chat/Commands/DebugCommands.cs +++ b/Source/Game/Chat/Commands/DebugCommands.cs @@ -1041,10 +1041,12 @@ namespace Game.Chat return false; } + uint broadcastTextId = args.NextUInt32(); + if (!player.GetTarget().IsEmpty()) unit.PlayDistanceSound(soundId, player); else - unit.PlayDirectSound(soundId, player); + unit.PlayDirectSound(soundId, player, broadcastTextId); handler.SendSysMessage(CypherStrings.YouHearSound, soundId); return true;