fix(DB/Core): play event after quest "Hero of the Mag'har"; extend SAI to play music (#1570)

This commit is contained in:
Stoabrogga
2019-03-19 09:04:40 +01:00
committed by GitHub
parent 306615e71a
commit 54b23ce209
6 changed files with 2316 additions and 1 deletions

View File

@@ -1825,6 +1825,16 @@ void WorldObject::SendPlaySound(uint32 Sound, bool OnlySelf)
SendMessageToSet(&data, true); // ToSelf ignored in this case
}
void WorldObject::SendPlayMusic(uint32 Music, bool OnlySelf)
{
WorldPacket data(SMSG_PLAY_MUSIC, 4);
data << Music;
if (OnlySelf && GetTypeId() == TYPEID_PLAYER)
this->ToPlayer()->GetSession()->SendPacket(&data);
else
SendMessageToSet(&data, true); // ToSelf ignored in this case
}
void Object::ForceValuesUpdateAtIndex(uint32 i)
{
_changesMask.SetBit(i);