mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9180] Add function to send custom animation for GameObject
Replace in code where packet used explicit. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
c4b0406e7d
commit
a461652636
4 changed files with 11 additions and 5 deletions
|
|
@ -202,10 +202,7 @@ void GameObject::Update(uint32 /*p_time*/)
|
|||
udata.BuildPacket(&packet);
|
||||
((Player*)caster)->GetSession()->SendPacket(&packet);
|
||||
|
||||
WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM,8+4);
|
||||
data << GetGUID();
|
||||
data << (uint32)(0);
|
||||
((Player*)caster)->SendMessageToSet(&data,true);
|
||||
SendGameObjectCustomAnim(GetGUID());
|
||||
}
|
||||
|
||||
m_lootState = GO_READY; // can be successfully open with some chance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue