[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:
NoFantasy 2010-01-15 01:01:18 +01:00
parent c4b0406e7d
commit a461652636
4 changed files with 11 additions and 5 deletions

View file

@ -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