Core/Creatures: Allow overriding non-gossip based trainer ids for creatures

Port From (https://github.com/TrinityCore/TrinityCore/commit/689d3a667af8c3e2662b77d14edf201771130bee)
This commit is contained in:
hondacrx
2023-03-14 01:55:52 -04:00
parent 8d014ebdae
commit 74bb5e4541
3 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ namespace Game
return;
}
uint trainerId = Global.ObjectMgr.GetCreatureDefaultTrainer(npc.GetEntry());
uint trainerId = npc.GetTrainerId();
if (trainerId != 0)
SendTrainerList(npc, trainerId);
else