From 83fe32ea624abce8d74030653fe66dcdb344d6d7 Mon Sep 17 00:00:00 2001 From: Ciscoh Bellic Date: Wed, 19 Jul 2023 07:28:24 -0400 Subject: [PATCH] distance check --- scripts/1467_ciscoh_basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/1467_ciscoh_basic.lua b/scripts/1467_ciscoh_basic.lua index 566c6af..250f21f 100644 --- a/scripts/1467_ciscoh_basic.lua +++ b/scripts/1467_ciscoh_basic.lua @@ -150,7 +150,7 @@ CiscOHSpec1467:Sync(function() EternitySurge:ForceCast(Target) end - if Target:Exists() and Target:IsHostile() and not Target:IsDead() then + if Target:Exists() and Target:IsHostile() and not Target:IsDead() and Player:GetDistance(Target) < 10 then SetHeading(Player:GetAngle(Target)) DefaultAPL:Execute() end