Core/Quest: do not set a quest to failed if it's rewarded or has no status at all (not taken).

(cherry picked from commit 97fd0c1b1a6c24b1903736f9e35443bae2495873)
This commit is contained in:
SnapperRy
2017-10-03 17:22:48 +02:00
committed by joschiwald
parent f1929df956
commit 5c7b821e17
4 changed files with 11 additions and 20 deletions
@@ -151,19 +151,11 @@ void FollowerAI::JustDied(Unit* /*killer*/)
if (Group* group = player->GetGroup())
{
for (GroupReference* groupRef = group->GetFirstMember(); groupRef != NULL; groupRef = groupRef->next())
{
if (Player* member = groupRef->GetSource())
{
if (member->GetQuestStatus(m_pQuestForFollow->GetQuestId()) == QUEST_STATUS_INCOMPLETE)
member->FailQuest(m_pQuestForFollow->GetQuestId());
}
}
member->FailQuest(m_pQuestForFollow->GetQuestId());
}
else
{
if (player->GetQuestStatus(m_pQuestForFollow->GetQuestId()) == QUEST_STATUS_INCOMPLETE)
player->FailQuest(m_pQuestForFollow->GetQuestId());
}
player->FailQuest(m_pQuestForFollow->GetQuestId());
}
}