change range filter to 45 yards if IsSpellInRange available

This commit is contained in:
pepopo978
2024-11-16 11:06:39 -08:00
parent 49e34b95dc
commit 8ba18ee9fb
3 changed files with 10 additions and 3 deletions
+6 -1
View File
@@ -21,7 +21,12 @@ filter.alive = function(unit)
end
filter.range = function(unit)
return CheckInteractDistance(unit, 4) and true or false
if IsSpellInRange then
-- 16707 is hex which has 45 yd range
return IsSpellInRange(16707, unit) == 1 and true or false
else
return CheckInteractDistance(unit, 4) and true or false
end
end
filter.icon = function(unit)