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

This commit is contained in:
SnapperRy
2016-10-15 19:08:21 +02:00
parent 59cbea00bc
commit 97fd0c1b1a
4 changed files with 11 additions and 20 deletions
@@ -147,19 +147,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());
}
}