[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

@ -1649,6 +1649,14 @@ void WorldObject::SendObjectDeSpawnAnim(uint64 guid)
SendMessageToSet(&data, true);
}
void WorldObject::SendGameObjectCustomAnim(uint64 guid)
{
WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM, 8+4);
data << uint64(guid);
data << uint32(0); // not known what this is
SendMessageToSet(&data, true);
}
void WorldObject::SetMap(Map * map)
{
ASSERT(map);