Fix(Core/DB): Naxxramas overhaul (#1657)

Co-authored-by: Pondaveia Pondaveia@users.noreply.github.com
Co-authored-by: FALL1N1 FALL1N1@users.noreply.github.com
This commit is contained in:
Nefertumm
2019-06-28 05:59:28 -03:00
committed by Stoabrogga
parent bacbf0a5c2
commit 2b37ea11a9
20 changed files with 706 additions and 352 deletions

View File

@@ -3252,6 +3252,21 @@ void Map::SendZoneDynamicInfo(Player* player)
}
}
void Map::PlayDirectSoundToMap(uint32 soundId, uint32 zoneId)
{
Map::PlayerList const& players = GetPlayers();
if (!players.isEmpty())
{
WorldPacket data(SMSG_PLAY_SOUND, 4);
data << uint32(soundId);
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
if (Player* player = itr->GetSource())
if (!zoneId || player->GetZoneId() == zoneId)
player->SendDirectMessage(&data);
}
}
void Map::SetZoneMusic(uint32 zoneId, uint32 musicId)
{
if (_zoneDynamicInfo.find(zoneId) == _zoneDynamicInfo.end())