changeset 9:148e87d347f5 v0.7.1.1-Beta

Fix for Whistle Master highlighting nodes in zones the player was not currently in.
author Vynn <mischivin@gmail.com>
date Sun, 06 Nov 2016 01:12:48 -0400
parents e7f7baf8475f
children 9d94f50f8221
files WhistleMaster.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/WhistleMaster.lua	Sun Nov 06 01:12:18 2016 -0400
+++ b/WhistleMaster.lua	Sun Nov 06 01:12:48 2016 -0400
@@ -57,8 +57,8 @@
 	return node
 end
 
-local function UpdateWhistleMaster()
-	if GetCurrentMapContinent() == 8 and WM_validIDs[ select(1, GetCurrentMapAreaID() ) ] and not GetNumDungeonMapLevels() then
+function UpdateWhistleMaster()
+	if GetCurrentMapContinent() == 8 and WM_validIDs[ select(1, GetCurrentMapAreaID() ) ] and GetMapNameByID(GetCurrentMapAreaID()) == GetZoneText() and not GetNumDungeonMapLevels() then
 		WM_ClosestNode = GetNode()
 		WhistleLoc:SetPoint("CENTER", "WorldMapFramePOI" .. WM_ClosestNode.index, 0, 0)
 		WhistleLoc:Show()