Core/Packets: converted SMSG_DURABILITY_DAMAGE_DEATH, SMSG_PLAY_ONE_SHOT_ANIM_KIT, SMSG_SET_AI_ANIM_KIT, SMSG_SET_MOVEMENT_ANIM_KIT and SMSG_SET_MELEE_ANIM_KIT to packet class
This commit is contained in:
1 parent
eb81e8f4a3
commit
b5bdf61e5f
4 files changed
+113
-19
No files matched your search
@@ -39,6 +39,7 @@
|
||||
#include "Item.h"
|
||||
#include "Log.h"
|
||||
#include "LootMgr.h"
|
||||
#include "MiscPackets.h"
|
||||
#include "MotionMaster.h"
|
||||
#include "MovementGenerator.h"
|
||||
#include "MovementPackets.h"
|
||||
@@ -11604,17 +11605,17 @@ bool Unit::InitTamedPet(Pet* pet, uint8 level, uint32 spell_id)
|
||||
|
||||
void Unit::SendDurabilityLoss(Player* receiver, uint32 percent)
|
||||
{
|
||||
WorldPacket data(SMSG_DURABILITY_DAMAGE_DEATH, 4);
|
||||
data << uint32(percent);
|
||||
receiver->SendDirectMessage(&data);
|
||||
WorldPackets::Misc::DurabilityDamageDeath packet;
|
||||
packet.Percent = percent;
|
||||
receiver->SendDirectMessage(packet.Write());
|
||||
}
|
||||
|
||||
void Unit::PlayOneShotAnimKitId(uint16 animKitId)
|
||||
{
|
||||
WorldPacket data(SMSG_PLAY_ONE_SHOT_ANIM_KIT, 7+2);
|
||||
data << GetPackGUID();
|
||||
data << uint16(animKitId);
|
||||
SendMessageToSet(&data, true);
|
||||
WorldPackets::Misc::PlayOneShotAnimKit packet;
|
||||
packet.Unit = GetGUID();
|
||||
packet.AnimKitID = animKitId;
|
||||
SendMessageToSet(packet.Write(), true);
|
||||
}
|
||||
|
||||
void Unit::Kill(Unit* victim, bool durabilityLoss)
|
||||
|
||||
Reference in new issue
Block a user