Quantcast

Make sure that the accepted quests is tracked if automatic tracking is enabled

Adrian L Lange [10-13-12 - 10:21]
Make sure that the accepted quests is tracked if automatic tracking is enabled
Filename
Monomyth.lua
diff --git a/Monomyth.lua b/Monomyth.lua
index 73adc44..8df97c4 100644
--- a/Monomyth.lua
+++ b/Monomyth.lua
@@ -118,6 +118,14 @@ end)

 Monomyth:Register('QUEST_ACCEPT_CONFIRM', AcceptQuest)

+Monomyth:Register('QUEST_ACCEPTED', function(id)
+	if(not GetCVarBool('autoQuestWatch')) then return end
+
+	if(not IsQuestWatched(id) and GetNumQuestWatches() < MAX_WATCHABLE_QUESTS) then
+		AddQuestWatch(id)
+	end
+end)
+
 Monomyth:Register('QUEST_PROGRESS', function()
 	if(IsQuestCompletable()) then
 		CompleteQuest()