[7278] In case gossip flag use gossip menu instead quest menu as client expected.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
NoFantasy 2009-02-14 14:19:34 +03:00 committed by VladimirMangos
parent d9c74376b3
commit 3b4402b88b
2 changed files with 3 additions and 3 deletions

View file

@ -812,8 +812,8 @@ void Creature::sendPreparedGossip(Player* player)
if(!player) if(!player)
return; return;
// in case empty gossip menu open quest menu if any // in case no gossip flag and quest menu not empty, open quest menu (client expect gossip menu with this flag)
if (player->PlayerTalkClass->GetGossipMenu().Empty() && !player->PlayerTalkClass->GetQuestMenu().Empty()) if (!HasFlag(UNIT_NPC_FLAGS,UNIT_NPC_FLAG_GOSSIP) && !player->PlayerTalkClass->GetQuestMenu().Empty())
{ {
player->SendPreparedQuest(GetGUID()); player->SendPreparedQuest(GetGUID());
return; return;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7277" #define REVISION_NR "7278"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__