Move some packets processing to map context

Port From (https://github.com/TrinityCore/TrinityCore/commit/2ea8f5e6fced094f28c45ac84123c85477122567)
This commit is contained in:
hondacrx
2021-04-18 14:06:00 -04:00
parent 63f0f919e2
commit b1ea7212f3
21 changed files with 98 additions and 98 deletions
+2 -2
View File
@@ -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())