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
+3 -3
View File
@@ -526,7 +526,7 @@ namespace Game
guild.HandleGuildPartyRequest(this);
}
[WorldPacketHandler(ClientOpcodes.GuildChangeNameRequest)]
[WorldPacketHandler(ClientOpcodes.GuildChangeNameRequest, Processing = PacketProcessing.Inplace)]
void HandleGuildChallengeUpdateRequest(GuildChallengeUpdateRequest packet)
{
Guild guild = GetPlayer().GetGuild();
@@ -543,7 +543,7 @@ namespace Game
GetPlayer().RemovePlayerFlag(PlayerFlags.AutoDeclineGuild);
}
[WorldPacketHandler(ClientOpcodes.RequestGuildRewardsList, Processing = PacketProcessing.Inplace)]
[WorldPacketHandler(ClientOpcodes.RequestGuildRewardsList)]
void HandleRequestGuildRewardsList(RequestGuildRewardsList packet)
{
if (Global.GuildMgr.GetGuildById(GetPlayer().GetGuildId()))
@@ -569,7 +569,7 @@ namespace Game
}
}
[WorldPacketHandler(ClientOpcodes.GuildQueryNews, Processing = PacketProcessing.Inplace)]
[WorldPacketHandler(ClientOpcodes.GuildQueryNews)]
void HandleGuildQueryNews(GuildQueryNews packet)
{
Guild guild = GetPlayer().GetGuild();