Core/Creatures: Allow overriding default gossip menu id
Port From (https://github.com/TrinityCore/TrinityCore/commit/09568736134372ec1a79b936a248eec30f071c8d)
This commit is contained in:
@@ -2698,7 +2698,7 @@ namespace Game.Entities
|
||||
switch (source.GetTypeId())
|
||||
{
|
||||
case TypeId.Unit:
|
||||
return source.ToCreature().GetCreatureTemplate().GossipMenuId;
|
||||
return source.ToCreature().GetGossipMenuId();
|
||||
case TypeId.GameObject:
|
||||
return source.ToGameObject().GetGoInfo().GetGossipMenuId();
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user