Core/Gossip: Add new helper method to ScriptedGossip for resolving menuId -> sender (PR #25293)
(cherry picked from commit db8bdaa08fbce1f2481ce79cb97a6f03725c5389)
This commit is contained in:
@@ -19,6 +19,11 @@
|
||||
#include "Creature.h"
|
||||
#include "Player.h"
|
||||
|
||||
uint32 GetGossipSenderFor(Player* player, uint32 menuId)
|
||||
{
|
||||
return player->PlayerTalkClass->GetGossipOptionSender(menuId);
|
||||
}
|
||||
|
||||
uint32 GetGossipActionFor(Player* player, uint32 gossipListId)
|
||||
{
|
||||
return player->PlayerTalkClass->GetGossipOptionAction(gossipListId);
|
||||
|
||||
Reference in New Issue
Block a user