From 3ee8ab28fef8e3976e5a48251d575ad49a66fe59 Mon Sep 17 00:00:00 2001 From: Konstantin Cheremisov Date: Sat, 7 Dec 2024 16:16:15 +0200 Subject: [PATCH] "Unit in sight" check updated using UnitXP_SP3 mod --- proximity.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proximity.lua b/proximity.lua index 458e66e..f18f488 100644 --- a/proximity.lua +++ b/proximity.lua @@ -47,6 +47,8 @@ function NotGrid:CheckProximity(unitid) -- return 1=confirmed_true, 2=confirmed_ --check these scenarios first even if the player has check with map toggled if UnitIsUnit(unitid, "player") then --unitisplayer, 0 yards return 1 + elseif UnitXP and not UnitXP("inSight", "player", unitid) then -- use UnitXP to check if unit is in sight + return 2 elseif CheckInteractDistance(unitid, 3) then -- duel range, 10 yards return 1 elseif CheckInteractDistance(unitid, 2) then -- trade and inspect range (1 is the same as 2 with patch 1.12), 11.11 yards