git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ccc7128
)
87a0cec - Noticed inspects fail when dead, don't try
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 22 Mar 2018 22:49:07 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 22 Mar 2018 22:49:07 +0000
OmaCD/Inspect.lua
patch
|
blob
|
history
diff --git
a/OmaCD/Inspect.lua
b/OmaCD/Inspect.lua
index
ff0c85f
..
d1291da
100644
(file)
--- a/
OmaCD/Inspect.lua
+++ b/
OmaCD/Inspect.lua
@@
-4,6
+4,7
@@
local next, print = next, print;
local format = string.format;
local InCombatLockdown = InCombatLockdown;
local CTimerAfter = C_Timer.After;
local format = string.format;
local InCombatLockdown = InCombatLockdown;
local CTimerAfter = C_Timer.After;
+local UnitIsDeadOrGhost = UnitIsDeadOrGhost;
local IsInGroup, IsInRaid = IsInGroup, IsInRaid;
local CheckInteractDistance = CheckInteractDistance;
local GetTime, UnitGUID, UnitName = GetTime, UnitGUID, UnitName;
local IsInGroup, IsInRaid = IsInGroup, IsInRaid;
local CheckInteractDistance = CheckInteractDistance;
local GetTime, UnitGUID, UnitName = GetTime, UnitGUID, UnitName;
@@
-40,7
+41,8
@@
local function inspect(id)
-- not necessary, but there's too many issues with inspect,
-- try to hope being nearby makes it more likely to work
-- no need to inspect people not in range before pull anyway
-- not necessary, but there's too many issues with inspect,
-- try to hope being nearby makes it more likely to work
-- no need to inspect people not in range before pull anyway
- if CheckInteractDistance(id, 1) and CanInspect(id) then
+ if not UnitIsDeadOrGhost("player") and
+ CheckInteractDistance(id, 1) and CanInspect(id) then
if not inspecting then
inspecting = guid;
print("Sending inspect", UnitName(id));
if not inspecting then
inspecting = guid;
print("Sending inspect", UnitName(id));