mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7116] Correctly show quest/gossip menues.
In case non defeault gossip text with quest only In case empty quest and gossip menus and gossip text.
This commit is contained in:
parent
9af1caccd8
commit
ac9b14d70c
2 changed files with 2 additions and 4 deletions
|
|
@ -813,10 +813,8 @@ void Creature::sendPreparedGossip(Player* player)
|
|||
if(!player)
|
||||
return;
|
||||
|
||||
GossipMenu& gossipmenu = player->PlayerTalkClass->GetGossipMenu();
|
||||
|
||||
// in case empty gossip menu open quest menu if any
|
||||
if (gossipmenu.Empty() && GetNpcTextId() == 0)
|
||||
if (player->PlayerTalkClass->GetGossipMenu().Empty() && !player->PlayerTalkClass->GetQuestMenu().Empty())
|
||||
{
|
||||
player->SendPreparedQuest(GetGUID());
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue