*Add function Gobject::sendcustomanim
--HG-- branch : trunk
This commit is contained in:
1 parent
f477476012
commit
0e3453e6d4
2 files changed
+10
-4
No files matched your search
@@ -218,10 +218,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);
|
||||
SendCustomAnim();
|
||||
}
|
||||
|
||||
m_lootState = GO_READY; // can be successfully open with some chance
|
||||
@@ -1385,6 +1382,14 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
|
||||
//trigger->RemoveCorpse();
|
||||
}
|
||||
|
||||
void GameObject::SendCustomAnim()
|
||||
{
|
||||
WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM,8+4);
|
||||
data << GetGUID();
|
||||
data << (uint32)0;
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
// overwrite WorldObject function for proper name localization
|
||||
const char* GameObject::GetNameForLocaleIdx(int32 loc_idx) const
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user