fix(DB/Core): play event after quest "Hero of the Mag'har"; extend SAI to play music (#1570)
This commit is contained in:
parent
306615e71a
commit
54b23ce209
6 changed files with 2316 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue