Skip to content

Commit

Permalink
Core/Quests: Fix certain issues with repeatable quests.
Browse files Browse the repository at this point in the history
closes TrinityCore#36

Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
  • Loading branch information
Machiavell1 committed Jan 6, 2011
1 parent b45c833 commit f94ae92
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/server/game/Entities/Player/Player.cpp
Expand Up @@ -14661,10 +14661,13 @@ void Player::RewardQuest(Quest const *pQuest, uint32 reward, Object* questGiver,
} else if (pQuest->IsWeekly())
SetWeeklyQuestStatus(quest_id);

RemoveActiveQuest(quest_id);

m_RewardedQuests.insert(quest_id);
m_RewardedQuestsSave[quest_id] = true;
if (!pQuest->IsRepeatable())
{
m_RewardedQuests.insert(quest_id);
m_RewardedQuestsSave[quest_id] = true;
}
else
RemoveActiveQuest(quest_id);

if (announce)
SendQuestReward(pQuest, XP, questGiver);
Expand Down

0 comments on commit f94ae92

Please sign in to comment.