chore(Core/Player): remove useless SendQuestComplete (#3380)
This commit is contained in:
@@ -15769,12 +15769,10 @@ void Player::CompleteQuest(uint32 quest_id)
|
|||||||
if (log_slot < MAX_QUEST_LOG_SIZE)
|
if (log_slot < MAX_QUEST_LOG_SIZE)
|
||||||
SetQuestSlotState(log_slot, QUEST_STATE_COMPLETE);
|
SetQuestSlotState(log_slot, QUEST_STATE_COMPLETE);
|
||||||
|
|
||||||
if (Quest const* qInfo = sObjectMgr->GetQuestTemplate(quest_id))
|
Quest const* qInfo = sObjectMgr->GetQuestTemplate(quest_id);
|
||||||
|
if (qInfo && qInfo->HasFlag(QUEST_FLAGS_TRACKING))
|
||||||
{
|
{
|
||||||
if (qInfo->HasFlag(QUEST_FLAGS_TRACKING))
|
RewardQuest(qInfo, 0, this, false);
|
||||||
RewardQuest(qInfo, 0, this, false);
|
|
||||||
else
|
|
||||||
SendQuestComplete(quest_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Xinef: area auras may change on quest completion!
|
// Xinef: area auras may change on quest completion!
|
||||||
|
|||||||
Reference in New Issue
Block a user