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:
hondacrx
2020-12-31 21:00:19 -05:00
parent 87c54f63ec
commit 10c1adf2d8
8 changed files with 18 additions and 13 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ namespace Game.AI
{
if (IsUnit(target))
{
target.PlayDirectSound(e.Action.sound.soundId, e.Action.sound.onlySelf != 0 ? target.ToPlayer() : null);
target.PlayDirectSound(e.Action.sound.soundId, e.Action.sound.onlySelf != 0 ? target.ToPlayer() : null, e.Action.sound.keyBroadcastTextId);
Log.outDebug(LogFilter.ScriptsAi, "SmartScript.ProcessAction. SMART_ACTION_SOUND: target: {0} (GuidLow: {1}), sound: {2}, onlyself: {3}",
target.GetName(), target.GetGUID().ToString(), e.Action.sound.soundId, e.Action.sound.onlySelf);
}