Core/Quests: Set quest slot earlier when abandoning a quest

This commit is contained in:
ModoX authored and Ovahlord committed 2022-01-14 21:40:27 +01:00
1 parent 319ef144b4
commit 83456ed853
1 file changed
+1 -2
+1 -2
View File
@@ -443,6 +443,7 @@ void WorldSession::HandleQuestLogRemoveQuest(WorldPackets::Quest::QuestLogRemove
}
}
_player->SetQuestSlot(packet.Entry, 0);
_player->TakeQuestSourceItem(questId, true); // remove quest src item from player
_player->AbandonQuest(questId); // remove all quest items player received before abandoning quest. Note, this does not remove normal drop items that happen to be quest requirements.
_player->RemoveActiveQuest(questId);
@@ -464,8 +465,6 @@ void WorldSession::HandleQuestLogRemoveQuest(WorldPackets::Quest::QuestLogRemove
sScriptMgr->OnQuestStatusChange(_player, questId);
}
_player->SetQuestSlot(packet.Entry, 0);
_player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_QUEST_ABANDONED, 1);
}
}