changeset 97:5d90d09cb7b7

- Fixed quest markers for other maps becoming visible due to ambiguous interpretations of pin.used. - Removed some redundant filter checking calls on pins obtained through Acquire() - Attempted fix to a source of combat taint.
author Nenue
date Sun, 14 May 2017 23:54:38 -0400
parents 8591401ec278
children d594c5c4a4a3
files WorldQuests.lua
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/WorldQuests.lua	Sun May 14 23:45:08 2017 -0400
+++ b/WorldQuests.lua	Sun May 14 23:54:38 2017 -0400
@@ -214,14 +214,16 @@
 end
 
 callbacks.UseWorldMapActionButtonSpellOnQuest = function(questID)
-  if db.QuestsByID[questID] then
-    db.QuestsByID[questID].isStale = true
+  local pin = db.QuestsByID[questID]
+  -- calling this implies that the pin is used in some way
+  if pin then
+    pin:CheckFilterRules()
   end
 end
 
 function Module:SetupCallbacks()
   if InCombatLockdown() then
-    return nil
+    return true
   end
   print('SetupCallbacks()')
   for target, arg in pairs(callbacks) do
@@ -240,8 +242,6 @@
       end)
     end
   end
-
-
 end
 
 function Module:Setup()