comparison Main.lua @ 480:6f689ac680bd 7.0.3-2

Fixed a major problem with capturing location data caused by an unclear API renaming in Legion.
author Caleb Atherton <catherton@curse.com>
date Thu, 11 Aug 2016 09:19:45 -0400
parents cf08b2748711
children f924bec6cf5e
comparison
equal deleted inserted replaced
479:cf08b2748711 480:6f689ac680bd
1078 1078
1079 do 1079 do
1080 local COORD_MAX = 5 1080 local COORD_MAX = 5
1081 1081
1082 function WDP:UpdateTargetLocation() 1082 function WDP:UpdateTargetLocation()
1083 if currently_drunk or not _G.UnitExists("target") or _G.UnitPlayerControlled("target") or not _G.UnitIsDead("target") or _G.UnitIsTapDenied("target") then 1083 if currently_drunk or not _G.UnitExists("target") or _G.UnitPlayerControlled("target") or (_G.UnitIsTapDenied("target") and not _G.UnitIsDead("target")) then
1084 return 1084 return
1085 end 1085 end
1086 1086
1087 for index = 1, 4 do 1087 for index = 1, 4 do
1088 if not _G.CheckInteractDistance("target", index) then 1088 if not _G.CheckInteractDistance("target", index) then