From 3980450a400ed27e24870d6a213e9e7003d16752 Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Mon, 10 Jun 2024 09:08:36 -0700 Subject: [PATCH] fix distance check --- commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.lua b/commands.lua index 0f8ade6..4cd86f6 100644 --- a/commands.lua +++ b/commands.lua @@ -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