changeset 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 274776fa70c8
files Main.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Main.lua	Wed Aug 03 12:44:12 2016 -0400
+++ b/Main.lua	Thu Aug 11 09:19:45 2016 -0400
@@ -1080,7 +1080,7 @@
     local COORD_MAX = 5
 
     function WDP:UpdateTargetLocation()
-        if currently_drunk or not _G.UnitExists("target") or _G.UnitPlayerControlled("target") or not _G.UnitIsDead("target") or _G.UnitIsTapDenied("target") then
+        if currently_drunk or not _G.UnitExists("target") or _G.UnitPlayerControlled("target") or (_G.UnitIsTapDenied("target") and not _G.UnitIsDead("target")) then
             return
         end