Move some packets processing to map context
Port From (https://github.com/TrinityCore/TrinityCore/commit/2ea8f5e6fced094f28c45ac84123c85477122567)
This commit is contained in:
@@ -542,7 +542,7 @@ namespace Game
|
||||
Global.ScriptMgr.OnPlayerChat(sender, ChatMsg.Dnd, Language.Universal, packet.Text);
|
||||
}
|
||||
|
||||
[WorldPacketHandler(ClientOpcodes.Emote)]
|
||||
[WorldPacketHandler(ClientOpcodes.Emote, Processing = PacketProcessing.Inplace)]
|
||||
void HandleEmote(EmoteClient packet)
|
||||
{
|
||||
if (!GetPlayer().IsAlive() || GetPlayer().HasUnitState(UnitState.Died))
|
||||
@@ -552,7 +552,7 @@ namespace Game
|
||||
GetPlayer().SetEmoteState(Emote.OneshotNone);
|
||||
}
|
||||
|
||||
[WorldPacketHandler(ClientOpcodes.SendTextEmote)]
|
||||
[WorldPacketHandler(ClientOpcodes.SendTextEmote, Processing = PacketProcessing.Inplace)]
|
||||
void HandleTextEmote(CTextEmote packet)
|
||||
{
|
||||
if (!GetPlayer().IsAlive())
|
||||
|
||||
Reference in New Issue
Block a user