Permalink
Browse files

Make sure that the accepted quests is tracked if automatic tracking i…

…s enabled
  • Loading branch information...
1 parent df73bfb commit 2e42e833644f2f6dbbc6dfeb84a5c7ca8d690ed6 @p3lim p3lim committed Oct 13, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 Monomyth.lua
View
@@ -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()

0 comments on commit 2e42e83

Please sign in to comment.