Core/Chat: Send broadcast text id in sound packets to allow playing encrypted sound files
Port From (https://github.com/TrinityCore/TrinityCore/commit/2e4609f6e18c181fbb54ec851a9ccd5bd3c6eb7b)
This commit is contained in:
@@ -1618,9 +1618,9 @@ namespace Game.Entities
|
||||
SendMessageToSet(playSpeakerBoxSound, true);
|
||||
}
|
||||
|
||||
public void PlayDirectSound(uint soundId, Player target = null)
|
||||
public void PlayDirectSound(uint soundId, Player target = null, uint broadcastTextId = 0)
|
||||
{
|
||||
PlaySound sound = new PlaySound(GetGUID(), soundId);
|
||||
PlaySound sound = new PlaySound(GetGUID(), soundId, broadcastTextId);
|
||||
if (target)
|
||||
target.SendPacket(sound);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user