Core/Units: implement function to play animkit.dbc entrys by using smsg play one shot anim kit.

*handle emote command is deprecated for cataclysm; on sniffs i've seen that every npc use the animkit.dbc for playing special emotes.
This commit is contained in:
Northstrider committed 2012-09-12 07:10:49 +02:00
1 parent 9e9ebcbfb3
commit 058789e866
3 files changed
+10

No files matched your search

+8
View File
@@ -14579,6 +14579,14 @@ void Unit::SendDurabilityLoss(Player* receiver, uint32 percent)
receiver->GetSession()->SendPacket(&data);
}
void Unit::PlayOneShotAnimKit(uint32 id)
{
WorldPacket data(SMSG_PLAY_ONE_SHOT_ANIM_KIT, 8+1);
data.appendPackGUID(GetGUID());
data << uint16(id);
SendMessageToSet(&data, true);
}
void Unit::Kill(Unit* victim, bool durabilityLoss)
{
// Prevent killing unit twice (and giving reward from kill twice)