[11952] Add support to send the anim for SMSG_TAMEOBJECT_CUSTOM_ANIM

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
stfx 2012-04-12 21:53:06 +02:00 committed by Schmoozerd
parent f153193a02
commit a66a40dc99
3 changed files with 4 additions and 4 deletions

View file

@ -1520,11 +1520,11 @@ void WorldObject::SendObjectDeSpawnAnim(ObjectGuid guid)
SendMessageToSet(&data, true); SendMessageToSet(&data, true);
} }
void WorldObject::SendGameObjectCustomAnim(ObjectGuid guid) void WorldObject::SendGameObjectCustomAnim(ObjectGuid guid, uint32 animId /*= 0*/)
{ {
WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM, 8+4); WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM, 8+4);
data << ObjectGuid(guid); data << ObjectGuid(guid);
data << uint32(0); // not known what this is data << uint32(animId);
SendMessageToSet(&data, true); SendMessageToSet(&data, true);
} }

View file

@ -551,7 +551,7 @@ class MANGOS_DLL_SPEC WorldObject : public Object
void PlayDirectSound(uint32 sound_id, Player* target = NULL); void PlayDirectSound(uint32 sound_id, Player* target = NULL);
void SendObjectDeSpawnAnim(ObjectGuid guid); void SendObjectDeSpawnAnim(ObjectGuid guid);
void SendGameObjectCustomAnim(ObjectGuid guid); void SendGameObjectCustomAnim(ObjectGuid guid, uint32 animId = 0);
virtual bool IsHostileTo(Unit const* unit) const =0; virtual bool IsHostileTo(Unit const* unit) const =0;
virtual bool IsFriendlyTo(Unit const* unit) const =0; virtual bool IsFriendlyTo(Unit const* unit) const =0;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11951" #define REVISION_NR "11952"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__