Core/Event: Add Brewfest Music during the event

Note: Dark Iron invasion music can be added with a trigger at a later stage
This commit is contained in:
Kittnz authored and Aokromes committed 2016-10-21 08:46:21 +02:00
1 parent 8fc89414f3
commit f5364cc5aa
4 files changed
+151

No files matched your search

@@ -2804,6 +2804,16 @@ void WorldObject::PlayDirectSound(uint32 sound_id, Player* target /*= NULL*/)
SendMessageToSet(&data, true);
}
void WorldObject::PlayDirectMusic(uint32 music_id, Player* target /*= NULL*/)
{
WorldPacket data(SMSG_PLAY_MUSIC, 4);
data << uint32(music_id);
if (target)
target->SendDirectMessage(&data);
else
SendMessageToSet(&data, true);
}
void WorldObject::DestroyForNearbyPlayers()
{
if (!IsInWorld())