Mercurial > wow > whistle-master
diff WhistleMaster.lua @ 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 | 090b3be6489d |
children | 5be6dcc0f0cd |
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()