Add proper check to EffectQuestComplete preventing completion of quest if we already did that

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-07-22 13:01:33 +02:00
parent 34b75bca95
commit f03d5a874b

View File

@@ -7035,7 +7035,7 @@ void Spell::EffectQuestComplete(uint32 i)
uint16 log_slot = pPlayer->FindQuestSlot(quest_id);
if (log_slot < MAX_QUEST_LOG_SIZE)
pPlayer->AreaExploredOrEventHappens(quest_id);
else
else if (!GetQuestRewardStatus(quest_id)) // never rewarded before
pPlayer->CompleteQuest(quest_id); // quest not in log - for internal use
}
}