Core/Gossip: Add new helper method to ScriptedGossip for resolving menuId -> sender (PR #25293)

(cherry picked from commit db8bdaa08fbce1f2481ce79cb97a6f03725c5389)
This commit is contained in:
Maks Szokalski
2022-02-04 00:27:11 +01:00
committed by Shauren
parent 669b6bea21
commit b5d0a94ead
2 changed files with 6 additions and 0 deletions
@@ -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);