Core/Players: PlayerChoice improvements

Port From (https://github.com/TrinityCore/TrinityCore/commit/e59059e1bd2f67691e2da0105771b0cb55b123a4)
This commit is contained in:
Hondacrx
2025-08-18 16:57:28 -04:00
parent 1f6f9013c7
commit cd0ffc6975
9 changed files with 284 additions and 212 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ namespace Game
_player.PlayerTalkClass.GetInteractionData().Reset();
_player.PlayerTalkClass.GetInteractionData().SourceGuid = npc.GetGUID();
_player.PlayerTalkClass.GetInteractionData().TrainerId = trainerId;
_player.PlayerTalkClass.GetInteractionData().SetTrainerId(trainerId);
trainer.SendSpells(npc, _player, GetSessionDbLocaleIndex());
}
@@ -112,7 +112,7 @@ namespace Game
if (_player.PlayerTalkClass.GetInteractionData().SourceGuid != packet.TrainerGUID)
return;
if (_player.PlayerTalkClass.GetInteractionData().TrainerId != packet.TrainerID)
if (_player.PlayerTalkClass.GetInteractionData().GetTrainerId() != packet.TrainerID)
return;
// check present spell in trainer spell list