diff WorldQuests.lua @ 55:6a2e85836219

- Re-color the outer border of pins when their quest is bounty-related (blue), or time remaining is under 2 hours (red). - Respond to SUPER_TRACKED_QUEST_CHANGED correctly
author Nenue
date Sat, 31 Dec 2016 17:48:25 -0500
parents b289eb3e6a32
children 0749e38081e7
line wrap: on
line diff
--- a/WorldQuests.lua	Sat Dec 31 17:31:39 2016 -0500
+++ b/WorldQuests.lua	Sat Dec 31 17:48:25 2016 -0500
@@ -129,6 +129,7 @@
 
   -- WORLD_MAP_UPDATE and PLAYER_ENTERING_WORLD are passed down from a higher level
   self:RegisterEvent('WORLD_QUEST_COMPLETED_BY_SPELL')
+  self:RegisterEvent('SUPER_TRACKED_QUEST_CHANGED')
   self:RegisterEvent('SKILL_LINES_CHANGED')
 end
 
@@ -148,7 +149,7 @@
 function Module:OnEvent (event, ...)
 
   print('|cFFFFFF00'..self:GetName()..':OnEvent() '..event..'|r', GetTime(), ...)
-  if event == 'QUEST_LOG_UPDATE' then
+  if (event == 'QUEST_LOG_UPDATE') or (event == 'SUPER_TRACKED_QUEST_CHANGED') then
     local questID, added = ...
     if questID and added then
       local questPOI = self:AcquirePin(questID)