diff ClassPlanMissions.lua @ 95:b29b35cb8539

- Fixed quest completion checking and handling - Changed animation method to hopefully stop weird flickering. - Pins are now visible before full reward data is loaded - Filter bar redesigned: - aligned horizontally along the top of the map display - filter buttons display a '+' when there are matches in both current and other zones, and '*' when there only matches in other zones - button tooltips separate local and global quests - button categories are highlighted and labeled when the cursor is over them - Fixed invalid POI targets appearing when the spell targeting cursor is active - ClassOrderPlan can be closed with the game menu button
author Nenue
date Mon, 08 May 2017 22:38:52 -0400
parents 589c444d4837
children
line wrap: on
line diff
--- a/ClassPlanMissions.lua	Sat Apr 15 11:05:32 2017 -0400
+++ b/ClassPlanMissions.lua	Mon May 08 22:38:52 2017 -0400
@@ -40,12 +40,14 @@
   wipe(profile.available)
 
 
-  for i = 1, #items do
-    if (not items[i].isBuilding and items[i].isZoneSupport) then
-    else
+  for _, data in ipairs(items) do
 
-      tinsert(profile.available, items[i])
+    --print(' -',data.name, '|cFF00FF00'.. data.offerEndTime .. '|r', date("%A %I:%m %p", data.offerEndTime))
+    if data.offerEndTime then
+      data.offerEndTime = time() + (data.offerEndTime - GetTime())
     end
+    tinsert(profile.available, data)
+
   end
 
   local items = C_Garrison.GetLandingPageItems(ORDERHALL_TYPE)