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:
@@ -1041,10 +1041,12 @@ namespace Game.Chat
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint broadcastTextId = args.NextUInt32();
|
||||||
|
|
||||||
if (!player.GetTarget().IsEmpty())
|
if (!player.GetTarget().IsEmpty())
|
||||||
unit.PlayDistanceSound(soundId, player);
|
unit.PlayDistanceSound(soundId, player);
|
||||||
else
|
else
|
||||||
unit.PlayDirectSound(soundId, player);
|
unit.PlayDirectSound(soundId, player, broadcastTextId);
|
||||||
|
|
||||||
handler.SendSysMessage(CypherStrings.YouHearSound, soundId);
|
handler.SendSysMessage(CypherStrings.YouHearSound, soundId);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user