mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
refactor(Core/Packet): Chat (#9509)
* Chat * . * Update GameObject.cpp * Update Object.cpp * Update Player.cpp
This commit is contained in:
committed by
GitHub
parent
03efc110a0
commit
725b1266b4
@@ -24,6 +24,7 @@
|
||||
#include "CellImpl.h"
|
||||
#include "CharacterCache.h"
|
||||
#include "Chat.h"
|
||||
#include "ChatPackets.h"
|
||||
#include "ChatTextBuilder.h"
|
||||
#include "Common.h"
|
||||
#include "ConditionMgr.h"
|
||||
@@ -1724,12 +1725,12 @@ void Unit::DealMeleeDamage(CalcDamageInfo* damageInfo, bool durabilityLoss)
|
||||
}
|
||||
}
|
||||
|
||||
void Unit::HandleEmoteCommand(uint32 anim_id)
|
||||
void Unit::HandleEmoteCommand(uint32 emoteId)
|
||||
{
|
||||
WorldPacket data(SMSG_EMOTE, 4 + 8);
|
||||
data << uint32(anim_id);
|
||||
data << GetGUID();
|
||||
SendMessageToSet(&data, true);
|
||||
WorldPackets::Chat::Emote packet;
|
||||
packet.EmoteID = emoteId;
|
||||
packet.Guid = GetGUID();
|
||||
SendMessageToSet(packet.Write(), true);
|
||||
}
|
||||
|
||||
bool Unit::IsDamageReducedByArmor(SpellSchoolMask schoolMask, SpellInfo const* spellInfo, uint8 effIndex)
|
||||
|
||||
Reference in New Issue
Block a user