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
@@ -26,7 +26,7 @@ namespace Game
{
public partial class WorldSession
{
[WorldPacketHandler(ClientOpcodes.LearnTalents)]
[WorldPacketHandler(ClientOpcodes.LearnTalents, Processing = PacketProcessing.Inplace)]
void HandleLearnTalents(LearnTalents packet)
{
LearnTalentFailed learnTalentFailed = new();
@@ -52,7 +52,7 @@ namespace Game
GetPlayer().SendTalentsInfoData();
}
[WorldPacketHandler(ClientOpcodes.LearnPvpTalents)]
[WorldPacketHandler(ClientOpcodes.LearnPvpTalents, Processing = PacketProcessing.Inplace)]
void HandleLearnPvpTalents(LearnPvpTalents packet)
{
LearnPvpTalentFailed learnPvpTalentFailed = new();
@@ -114,7 +114,7 @@ namespace Game
unit.CastSpell(GetPlayer(), 14867, true); //spell: "Untalent Visual Effect"
}
[WorldPacketHandler(ClientOpcodes.UnlearnSkill)]
[WorldPacketHandler(ClientOpcodes.UnlearnSkill, Processing = PacketProcessing.Inplace)]
void HandleUnlearnSkill(UnlearnSkill packet)
{
SkillRaceClassInfoRecord rcEntry = Global.DB2Mgr.GetSkillRaceClassInfo(packet.SkillLine, GetPlayer().GetRace(), GetPlayer().GetClass());