mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Scripts): Use distinct sound entry for BRD L70ETC Music Doodad. (#22029)
This commit is contained in:
@@ -458,7 +458,8 @@ public:
|
||||
####*/
|
||||
enum L70ETCMusic
|
||||
{
|
||||
MUSIC_L70_ETC_MUSIC = 11803
|
||||
MUSIC_L70_ETC_MUSIC = 11803,
|
||||
MUSIC_L70_ETC_MUSIC_LOUD = 12868
|
||||
};
|
||||
|
||||
enum L70ETCMusicEvents
|
||||
@@ -486,7 +487,10 @@ public:
|
||||
switch (eventId)
|
||||
{
|
||||
case EVENT_ETC_START_MUSIC:
|
||||
me->PlayDirectMusic(MUSIC_L70_ETC_MUSIC);
|
||||
if (me->GetMapId() == MAP_BLACKROCK_DEPTHS)
|
||||
me->PlayDirectMusic(MUSIC_L70_ETC_MUSIC_LOUD);
|
||||
else
|
||||
me->PlayDirectMusic(MUSIC_L70_ETC_MUSIC);
|
||||
_events.ScheduleEvent(EVENT_ETC_START_MUSIC, 1600); // Every 1.6 seconds SMSG_PLAY_MUSIC packet (PlayDirectMusic) is pushed to the client (sniffed value)
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user