aboutsummaryrefslogtreecommitdiff
path: root/src/game/QuestHandler.cpp
diff options
context:
space:
mode:
authorclick <none@none>2010-04-17 17:59:19 +0200
committerclick <none@none>2010-04-17 17:59:19 +0200
commitcc2db574f119547060cb7c3482fb29ec408d28a8 (patch)
treed402b11d4b318efa83ef43e2aa6f0d3ecdef147c /src/game/QuestHandler.cpp
parent6e0fa4b39e7f0bc5dcdaa503db25d5b154224a04 (diff)
Whack questgivers in the head with a bat to make them properly show ! or ? properly depending on the questtype they hand out
Patch by Liberate --HG-- branch : trunk
Diffstat (limited to 'src/game/QuestHandler.cpp')
-rw-r--r--src/game/QuestHandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/QuestHandler.cpp b/src/game/QuestHandler.cpp
index c7632cf10f0..a4d1e0dede2 100644
--- a/src/game/QuestHandler.cpp
+++ b/src/game/QuestHandler.cpp
@@ -246,7 +246,10 @@ void WorldSession::HandleQuestgiverQueryQuestOpcode(WorldPacket & recv_data)
Quest const* pQuest = objmgr.GetQuestTemplate(quest);
if (pQuest)
{
- _player->PlayerTalkClass->SendQuestGiverQuestDetails(pQuest, pObject->GetGUID(), true);
+ if (pQuest->GetFlags() & QUEST_FLAGS_AUTOCOMPLETE)
+ _player->PlayerTalkClass->SendQuestGiverRequestItems(pQuest, pObject->GetGUID(), _player->CanCompleteQuest(pQuest->GetQuestId()), true);
+ else
+ _player->PlayerTalkClass->SendQuestGiverQuestDetails(pQuest, pObject->GetGUID(), true);
}
}