# HG changeset patch # User Vynn # Date 1478409168 14400 # Node ID 148e87d347f5f8b73cacfaf2c20f1b42f65a76da # Parent e7f7baf8475f80a156483b9d38ffb091aadf64c8 Fix for Whistle Master highlighting nodes in zones the player was not currently in. diff -r e7f7baf8475f -r 148e87d347f5 WhistleMaster.lua --- 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()