Skip to content

Commit 5b2106d

Browse files
SubvShauren
authored andcommitted
Core/Quests: Fixed an issue with self-completing quests.
(cherry picked from commit af87786)
1 parent 80938ba commit 5b2106d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/server/game/Handlers/QuestHandler.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,13 @@ void WorldSession::HandleQuestgiverQueryQuestOpcode(WorldPacket& recvData)
238238

239239
if (Quest const* quest = sObjectMgr->GetQuestTemplate(questId))
240240
{
241-
// not sure here what should happen to quests with QUEST_FLAGS_AUTOCOMPLETE
242-
// if this breaks them, add && object->GetTypeId() == TYPEID_ITEM to this check
243-
// item-started quests never have that flag
244241
if (!_player->CanTakeQuest(quest, true))
245242
return;
246243

247244
if (quest->IsAutoAccept() && _player->CanAddQuest(quest, true))
248245
_player->AddQuestAndCheckCompletion(quest, object);
249246

250-
if (quest->HasFlag(QUEST_FLAGS_AUTOCOMPLETE))
247+
if (quest->IsAutoComplete())
251248
_player->PlayerTalkClass->SendQuestGiverRequestItems(quest, object->GetGUID(), _player->CanCompleteQuest(quest->GetQuestId()), true);
252249
else
253250
_player->PlayerTalkClass->SendQuestGiverQuestDetails(quest, object->GetGUID(), true);

0 commit comments

Comments
 (0)