fix distance check

This commit is contained in:
pepopo978
2024-06-10 09:08:36 -07:00
parent efb73988ab
commit 3980450a40
+1 -1
View File
@@ -145,7 +145,7 @@ local function pickTarget(selectedPriority, spellNameNoRank, checkRange)
if shouldDisplay then
-- check if in combat already or player is actively targeting the mob
if Cursive.filter.infight(guid) or guid == currentTargetGuid then
if checkRange == true and CheckInteractDistance(guid, 4) then
if checkRange == false or CheckInteractDistance(guid, 4) then
-- check if the target has the curse
if not Cursive.curses:HasCurse(spellNameNoRank, guid) and not isMobCrowdControlled(guid) then
local value