Core/Creatures: Allow overriding default gossip menu id
Port From (https://github.com/TrinityCore/TrinityCore/commit/09568736134372ec1a79b936a248eec30f071c8d)
This commit is contained in:
@@ -153,7 +153,7 @@ namespace Game
|
||||
_player.PlayerTalkClass.ClearMenus();
|
||||
if (!unit.GetAI().OnGossipHello(_player))
|
||||
{
|
||||
GetPlayer().PrepareGossipMenu(unit, unit.GetCreatureTemplate().GossipMenuId, true);
|
||||
GetPlayer().PrepareGossipMenu(unit, unit.GetGossipMenuId(), true);
|
||||
GetPlayer().SendPreparedGossip(unit);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Game
|
||||
if (creature.GetAI().OnGossipHello(_player))
|
||||
return;
|
||||
|
||||
GetPlayer().PrepareGossipMenu(creature, creature.GetCreatureTemplate().GossipMenuId, true);
|
||||
GetPlayer().PrepareGossipMenu(creature, creature.GetGossipMenuId(), true);
|
||||
GetPlayer().SendPreparedGossip(creature);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user