Mercurial > wow > whistle-master
comparison 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 |
comparison
equal
deleted
inserted
replaced
8:e7f7baf8475f | 9:148e87d347f5 |
---|---|
55 end | 55 end |
56 end | 56 end |
57 return node | 57 return node |
58 end | 58 end |
59 | 59 |
60 local function UpdateWhistleMaster() | 60 function UpdateWhistleMaster() |
61 if GetCurrentMapContinent() == 8 and WM_validIDs[ select(1, GetCurrentMapAreaID() ) ] and not GetNumDungeonMapLevels() then | 61 if GetCurrentMapContinent() == 8 and WM_validIDs[ select(1, GetCurrentMapAreaID() ) ] and GetMapNameByID(GetCurrentMapAreaID()) == GetZoneText() and not GetNumDungeonMapLevels() then |
62 WM_ClosestNode = GetNode() | 62 WM_ClosestNode = GetNode() |
63 WhistleLoc:SetPoint("CENTER", "WorldMapFramePOI" .. WM_ClosestNode.index, 0, 0) | 63 WhistleLoc:SetPoint("CENTER", "WorldMapFramePOI" .. WM_ClosestNode.index, 0, 0) |
64 WhistleLoc:Show() | 64 WhistleLoc:Show() |
65 WhistlePing.Ping:Play() | 65 WhistlePing.Ping:Play() |
66 return true | 66 return true |