Core/Commands: Add optional broadcast text id argument to .debug play sound command

Port From (https://github.com/TrinityCore/TrinityCore/commit/d94f0d23b3cbf0944576cfd77fb199453234817b)
This commit is contained in:
hondacrx
2020-12-31 21:04:30 -05:00
parent fe1e839708
commit f75a110654
+3 -1
View File
@@ -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;