[7278] In case gossip flag use gossip menu instead quest menu as client expected. Author: NoFantasy <[email protected]>
--HG-- branch : trunk
This commit is contained in:
@@ -930,8 +930,8 @@ void Creature::sendPreparedGossip(Player* player)
|
||||
if(GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_WORLDEVENT) // if world event npc then
|
||||
gameeventmgr.HandleWorldEventGossip(player, this); // update world state with progress
|
||||
|
||||
// in case empty gossip menu open quest menu if any
|
||||
if (player->PlayerTalkClass->GetGossipMenu().Empty() && !player->PlayerTalkClass->GetQuestMenu().Empty())
|
||||
// in case no gossip flag and quest menu not empty, open quest menu (client expect gossip menu with this flag)
|
||||
if (!HasFlag(UNIT_NPC_FLAGS,UNIT_NPC_FLAG_GOSSIP) && !player->PlayerTalkClass->GetQuestMenu().Empty())
|
||||
{
|
||||
player->SendPreparedQuest(GetGUID());
|
||||
return;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7277"
|
||||
#define REVISION_NR "7278"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
||||
Reference in New Issue
Block a user