diff Bloodhound2.lua @ 2:91131c35a2c3

Added the ability for Trove of the Thunderking to be tracked while on Isle of Thunder. Config options have not been tested and these nodes will only show up if you haven't looted a trove this week and should disappear as soon as you do loot a trove.
author only1yzerman
date Fri, 10 May 2013 20:56:25 -0400
parents 6ab5b23877a6
children a10b7ef54e09
line wrap: on
line diff
--- a/Bloodhound2.lua	Fri May 10 03:45:15 2013 -0400
+++ b/Bloodhound2.lua	Fri May 10 20:56:25 2013 -0400
@@ -96,6 +96,7 @@
             if (c ~= player.C and c ~= 0) then						-- reload continent data if continent has changed
                 Bloodhound2.HerbNodes, Bloodhound2.ContinentHerbs = Bloodhound2.ReloadNodes(Bloodhound2.HerbDatabase[c], Bloodhound2.ZoneDatum[c]);
                 Bloodhound2.OreNodes, Bloodhound2.ContinentOre = Bloodhound2.ReloadNodes(Bloodhound2.OreDatabase[c], Bloodhound2.ZoneDatum[c]);
+                Bloodhound2.MiscNodes, Bloodhound2.ContinentNode = Bloodhound2.ReloadNodes(Bloodhound2.MiscDatabase[c], Bloodhound2.ZoneDatum[c]);
             end
 
             if (c ~= player.C or z ~= player.Z or x ~= player.X or y ~= player.Y or f ~= player.F or m ~= lastzoom) then
@@ -148,6 +149,7 @@
 
 Bloodhound2.HerbNodes = {};
 Bloodhound2.OreNodes = {};
+Bloodhound2.MiscNodes = {};
 Bloodhound2.ContinentHerbs = {};
 Bloodhound2.ContinentOre = {};
 
@@ -317,9 +319,15 @@
 			if (name == L["Find Herbs"]) then
 				for k,v in pairs(Settings.HerbFilter) do settingsFilter[k] = v end
 				for k,v in pairs(Bloodhound2.HerbNodes) do tinsert(nodes, v) end
+				if (IsQuestFlaggedCompleted(32609) ~= 1) then
+          for k,v in pairs(Bloodhound2.MiscNodes) do tinsert(nodes, v) end
+        end
 			elseif (name == L["Find Minerals"]) then
 				for k,v in pairs(Settings.OreFilter) do settingsFilter[k] = v end
 				for k,v in pairs(Bloodhound2.OreNodes) do tinsert(nodes, v) end
+				if (IsQuestFlaggedCompleted(32609) ~= 1) then
+          for k,v in pairs(Bloodhound2.MiscNodes) do tinsert(nodes, v) end
+        end
 			end
 		end
 	end