local U=math.rad local F=math.random local i=CFrame.new local A=CFrame.Angles local y=Vector3.new local d=CFrame.lookAt local r=Instance.new local function S(U)if U:FindFirstChild("\072\097\116\065\116\116\097\099\104\109\101\110\116")or U:FindFirstChild("\072\097\105\114\065\116\116\097\099\104\109\101\110\116")or U:FindFirstChild("\078\101\099\107\065\116\116\097\099\104\109\101\110\116")or U:FindFirstChild("\070\097\099\101\070\114\111\110\116\065\116\116\097\099\104\109\101\110\116")then return true else return false end end local function z(U,F,A,y,r,S)if S then local U=S.Size.Z/2 local r=i(0,0,-(y-U))S.CFrame=(d(F,F+A)):ToWorldSpace(r)end end local function c(U,A,d,z)local c=coroutine.create(function()local U=A.Instance local d=F(MinimumDamage,MaximumDamage)if U.Parent:IsA("\077\111\100\101\108")and not core.isAlly(U.Parent)then if U.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then local F=(U:FindFirstAncestorWhichIsA("\077\111\100\101\108")):FindFirstChild("\072\117\109\097\110\111\105\100")if U.Name=="\072\101\097\100"then F:TakeDamage(d*headshotmultiplier)else F:TakeDamage(d)end local i=r("\083\111\117\110\100",U)i.PlayOnRemove=true i.SoundId=HitFleshSound i:Destroy()else local U=combat.getBulletHole()U.CFrame=i(A.Position,A.Position+A.Normal)for U=1,F(2,3),1 do local d=r("\080\097\114\116")d.Color=A.Instance.Color d.Material=A.Instance.Material local S=F(5)/20 d.Size=y(S,S,S)d.CFrame=i(A.Position)d.Anchored=false d.Velocity=y(F(-20,20),F(10,20),F(-20,20))d.Parent=workspace.IgnoreFolder d:SetNetworkOwner(nil)debrisService:AddItem(d,1)end local d=r("\080\097\114\116",workspace.IgnoreFolder)d.Size=y(0,0,0)d.CanCollide=false d.CFrame=i(A.Position)d.Anchored=true local S=r("\083\111\117\110\100",d)S.SoundId=HitWallSounds[F(1,#HitWallSounds)]S.Volume=1 S:Play()debrisService:AddItem(d,1.5)debrisService:AddItem(U,5)end elseif U.Parent:IsA("\065\099\099\101\115\115\111\114\121")then local F=S(U)if U.Parent.Parent:IsA("\077\111\100\101\108")and not core.isAlly(U.Parent.Parent)then local i=U.Parent.Parent if i:FindFirstChild("\072\117\109\097\110\111\105\100")then if F then i.Humanoid:TakeDamage(d*headshotmultiplier)else i.Humanoid:TakeDamage(d)end local A=r("\083\111\117\110\100",U)A.PlayOnRemove=true A.SoundId=HitFleshSound A:Destroy()end end end end)coroutine.resume(c)debrisService:AddItem(z,.7)if z:FindFirstChild("\087\104\105\122")then z.Whiz:Stop()end end function combat.getBulletHole()local U=(game.ServerStorage:WaitForChild("\072\111\108\101")):Clone()U.Parent=workspace.IgnoreFolder return U end function combat.getBullet()local U=(game.ServerStorage:WaitForChild("\066\117\108\108\101\116")):Clone()U.Parent=workspace.IgnoreFolder return U end function combat.getCase()local U=(game.ServerStorage:WaitForChild("\067\097\115\101")):Clone()U.Parent=workspace.IgnoreFolder return U end function pushBullet(y)local d=barrel.WorldPosition local r=(i(d,(barrel.WorldCFrame*i(0,0,-5)).Position)*A(U(F(-spread,spread)),U(F(-spread,spread)),U(F(-spread,spread)))).LookVector local S=r*bulletspeed NewCaster:Fire(d,r,S,Behaviour)local C=0 NewCaster.LengthChanged:Connect(function(U,F,i,A,y,d)z(U,F,i,A,y,d)C+=A if C>=maxdistance and d~=nil then d:Destroy()end end)NewCaster.RayHit:Connect(c)end local C=1 function combat.shoot(U)if status:get("\119\101\097\112\111\110\067\111\111\108")and not status:get("\114\101\108\111\097\100\105\110\103")then status:set("\119\101\097\112\111\110\067\111\111\108",false)local F if core.checkDist(U,myRoot)>60 then F=1 else F=burstamount end if not fullauto then for F=1,F,1 do if myHuman.Health<=0 or U.Parent.Humanoid.Health<=0 then break end if core.checkDist(myRoot,U)<7 then break end wait(firerate)status:set("\109\097\103",status:get("\109\097\103")-1)local i=coroutine.create(function()barrel.MuzzleFlash:Emit(20)barrel.Dust:Emit(40)lightFlash.Enabled=true wait(.1)lightFlash.Enabled=false end)coroutine.resume(i)if shotgunpellets>1 then for U=1,shotgunpellets,1 do spawn(function()local U=combat.getBullet()pushBullet(U)U:Destroy()end)end else local U=combat.getBullet()pushBullet(U)U:Destroy()end local A=combat.getCase()A.CFrame=chamber.WorldCFrame A.Velocity=(A.CFrame.RightVector*-20)*y(1,-3,1)A:SetNetworkOwner(nil)core.spawn(function()wait(.05)A.CanCollide=true wait(2)A:Destroy()end)fireSound:Play()local d=m4.HingeAttach1.Position m4.HingeAttach1.Position=d-y(0,0,.2);(tweenService:Create(m4.HingeAttach1,TweenInfo.new(.1),{Position=d})):Play()end else local F=RaycastParams.new()F.FilterType=Enum.RaycastFilterType.Blacklist F.FilterDescendantsInstances={marine}local i,A=pcall(function()for i=1,status:get("\109\097\103"),1 do if myHuman.Health<=0 or U.Parent.Humanoid.Health<=0 then break end local A=false local d=workspace:Raycast(myHead.Position,(U.Parent.Head.Position-myHead.Position).Unit*detectionrange,F)pcall(function()if d.Instance and d.Instance:IsDescendantOf(U.Parent)then A=true end end)if not A then break end wait(firerate)status:set("\109\097\103",status:get("\109\097\103")-1)local r=coroutine.create(function()barrel.MuzzleFlash:Emit(20)barrel.Dust:Emit(40)lightFlash.Enabled=true wait(.1)lightFlash.Enabled=false end)coroutine.resume(r)if shotgunpellets>1 then for U=1,shotgunpellets,1 do spawn(function()local U=combat.getBullet()pushBullet(U)U:Destroy()end)end else local U=combat.getBullet()pushBullet(U)U:Destroy()end local S=combat.getCase()S.CFrame=chamber.WorldCFrame S.Velocity=(S.CFrame.RightVector*-20)*y(1,-3,1)core.spawn(function()wait(.05)S.CanCollide=true wait(2)S:Destroy()end)fireSound:Play()local z=m4.HingeAttach1.Position m4.HingeAttach1.Position=z-y(0,0,.2);(tweenService:Create(m4.HingeAttach1,TweenInfo.new(.1),{Position=z})):Play()end end)if not i then warn(A)end end if status:get("\109\097\103")<=0 then wait(delaybeforereloading)actions.reload()end wait(mySettings.M4.Delay.Value)status:set("\119\101\097\112\111\110\067\111\111\108",true)end end function combat.throwGrenade(F)if status:get("\119\101\097\112\111\110\067\111\111\108")and status:get("\103\114\101\110\097\100\101\067\111\111\108")then status:set("\119\101\097\112\111\110\067\111\111\108",false)status:set("\103\114\101\110\097\100\101\067\111\111\108",false)actions.yieldWeapons()local S=marine.Grenade:Clone()S.Boom.PlayOnRemove=true S.Parent=workspace S.CanCollide=true S.CFrame=(marine["\082\105\103\104\116 \065\114\109"].CFrame*i(0,-1.3,0))*A(0,0,U(90))S:SetNetworkOwner(nil)debrisService:AddItem(S,5)marine.Grenade.Transparency=1 local z=r("\087\101\108\100\067\111\110\115\116\114\097\105\110\116",S)z.Part0=marine["\082\105\103\104\116 \065\114\109"]z.Part1=S throwAnimation:Play()marine.Grenade.Pin:Play()myHuman.AutoRotate=false for U=1,4,1 do wait(.1)myRoot.CFrame=d(y(myRoot.Position.X,myRoot.Position.Y,myRoot.Position.Z),y(F.Position.X,myRoot.Position.Y,F.Position.Z))end myHuman.AutoRotate=true if myHuman.Health<=0 then return end throwAnimation:Stop()z.Part1=nil local c=F.Position+F.Velocity troubleshoot.mark(c)local C=core.checkDist(myRoot,F)local h=d(myRoot.Position,c)S.Velocity=(myRoot.CFrame.LookVector+y(0,1,0))*y(C,C*1.5,C)touched=S.Touched:Connect(function(U)if not U:IsDescendantOf(marine)then touched:Disconnect()S.HitWall:Play()wait(.5)local U=r("\069\120\112\108\111\115\105\111\110",workspace)U.Position=S.Position U.BlastRadius=16 U.BlastPressure=0 U.Hit:Connect(function(U,F)local i=U.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if i then core.applyDamage(i,20-F)end end)S:Destroy()debrisService:AddItem(U,2)end end)local Y=S.Attach0 local D=S.Attach1 local N=r("\084\114\097\105\108",S)N.Attachment0=Y N.Attachment1=D N.Lifetime=.5 N.Color=ColorSequence.new(Color3.fromRGB(150,150,150))N.WidthScale=NumberSequence.new(1,0)core.spawn(function()wait(1)status:set("\119\101\097\112\111\110\067\111\111\108",true)wait(5)status:set("\103\114\101\110\097\100\101\067\111\111\108",true)marine.Grenade.Transparency=0 end)end end local h=marine.Knife function combat.stab()local U=false for F,i in pairs((status:get("\099\117\114\114\101\110\116\084\097\114\103\101\116")).Parent:GetChildren())do if i:IsA("\066\097\115\101\080\097\114\116")and core.checkDist(i,myRoot)<7 then U=true end end if U then myHuman:MoveTo((status:get("\099\117\114\114\101\110\116\084\097\114\103\101\116")).Position)h.Stab:Play()h.Attack:Play()if F(2)==1 then stabAnimation:Play(.1,1,2)else stabPunchAnimation:Play()end local U=(status:get("\099\117\114\114\101\110\116\084\097\114\103\101\116")).Parent.Humanoid core.applyDamage(U,F(MinimumDamage,MaximumDamage))if U.Health<=0 then targeting.findTarget()end wait(.5)else wait(.2)end end function combat.checkCluster(U)for F,i in ipairs(status:get("\097\099\116\105\118\101\065\108\108\105\101\115"))do if core.checkDist(U,i)<30 then return false end end for F,i in ipairs(status:get("\112\111\116\101\110\116\105\097\108\084\097\114\103\101\116\115"))do if i~=U then if core.checkDist(U,i)<15 then return true end end end return false end return combat

local rad = math.rad
local random = math.random
local NewCFrame = CFrame.new
local Angles = CFrame.Angles
local NewVector = Vector3.new
local CFLookAt = CFrame.lookAt
local NewInstance = Instance.new

local function IsHeadAccessory(Handle)
	if Handle:FindFirstChild("HatAttachment") or Handle:FindFirstChild("HairAttachment") or Handle:FindFirstChild("NeckAttachment") or Handle:FindFirstChild("FaceFrontAttachment") then
		return true
	else
		return false
	end
end

local function OnLengthChanged(Cast, LastPoint, Direction, Length, Velocity, Bullet)
	if Bullet then
		local BulletLength = Bullet.Size.Z/2
		local Offset = NewCFrame(0,0,-(Length - BulletLength))
		Bullet.CFrame = CFLookAt(LastPoint, LastPoint + Direction):ToWorldSpace(Offset)
	end
end

local function OnHit(Cast, Result, Velocity, Bullet)
	local HitCoroutine = coroutine.create(function()
		local Hit = Result.Instance
		local Damage = random(MinimumDamage,MaximumDamage)

		if Hit.Parent:IsA("Model") and not core.isAlly(Hit.Parent) then
			if Hit.Parent:FindFirstChild("Humanoid") then
				local Humanoid = Hit:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid")

				if Hit.Name == "Head" then
					Humanoid:TakeDamage(Damage * headshotmultiplier)
				else
					Humanoid:TakeDamage(Damage)
				end

				local HitSound = NewInstance("Sound",Hit)
				HitSound.PlayOnRemove = true
				HitSound.SoundId = HitFleshSound
				HitSound:Destroy()
			else
				local newBulletHole = combat.getBulletHole()
				newBulletHole.CFrame = NewCFrame(Result.Position,Result.Position + Result.Normal)
				
				for i = 1, random(2,3) do
					local chunk = NewInstance("Part")
					chunk.Color = Result.Instance.Color
					chunk.Material = Result.Instance.Material
					local size = random(5)/20
					chunk.Size = NewVector(size,size,size)
					chunk.CFrame = NewCFrame(Result.Position)
					chunk.Anchored = false
					chunk.Velocity = NewVector(random(-20,20),random(10,20),random(-20,20))
					chunk.Parent = workspace.IgnoreFolder
					chunk:SetNetworkOwner(nil)
					
					debrisService:AddItem(chunk,1)
				end
				
				local soundattachment = NewInstance("Part",workspace.IgnoreFolder)
				soundattachment.Size = NewVector(0,0,0)
				soundattachment.CanCollide = false
				soundattachment.CFrame = NewCFrame(Result.Position)
				soundattachment.Anchored = true
				
				local HitSound = NewInstance("Sound",soundattachment)
				HitSound.SoundId = HitWallSounds[random(1,#HitWallSounds)]
				HitSound.Volume = 1
				HitSound:Play()
				
				debrisService:AddItem(soundattachment,1.5)
				debrisService:AddItem(newBulletHole,5)
			end
		elseif Hit.Parent:IsA("Accessory") then
			local IsAHeadAccessory = IsHeadAccessory(Hit)
			if Hit.Parent.Parent:IsA("Model") and not core.isAlly(Hit.Parent.Parent) then
				local Model = Hit.Parent.Parent
				if Model:FindFirstChild("Humanoid") then
					if IsAHeadAccessory then
						Model.Humanoid:TakeDamage(Damage * headshotmultiplier)
					else
						Model.Humanoid:TakeDamage(Damage)
					end

					local HitSound = NewInstance("Sound",Hit)
					HitSound.PlayOnRemove = true
					HitSound.SoundId = HitFleshSound
					HitSound:Destroy()
					
				end
			end
		end

	end)
	
	coroutine.resume(HitCoroutine)
	
	debrisService:AddItem(Bullet,0.7)
	
	if Bullet:FindFirstChild("Whiz") then
		Bullet.Whiz:Stop()
	end
end

function combat.getBulletHole()
	local c = game.ServerStorage:WaitForChild("Hole"):Clone()
	c.Parent = workspace.IgnoreFolder
	
	return c
end

function combat.getBullet()
	local c = game.ServerStorage:WaitForChild("Bullet"):Clone()
	c.Parent = workspace.IgnoreFolder
	
	return c
end

function combat.getCase()
	local c = game.ServerStorage:WaitForChild("Case"):Clone()
	c.Parent = workspace.IgnoreFolder
	
	return c
end

function pushBullet(bullet)
	-- replaced all the code in this function
	
	local origin = barrel.WorldPosition
	local direction = (NewCFrame(origin,(barrel.WorldCFrame * NewCFrame(0,0,-5)).Position) * Angles(rad(random(-spread,spread)),rad(random(-spread,spread)),rad(random(-spread,spread)))).LookVector
	
	local NewVelocity = direction * bulletspeed
	
	NewCaster:Fire(origin, direction, NewVelocity, Behaviour)

	local MaxLength = 0 -- value starts at zero and works its way up to the maximum distance as the bullet travels (used to detect how far the cosmetic bullet travels before being destroyed if it reaches max distance)

	NewCaster.LengthChanged:Connect(function(Cast,LastPoint,NewDirection,Length,NewVelocity,Bullet)
		OnLengthChanged(Cast, LastPoint, NewDirection, Length, NewVelocity, Bullet)
		MaxLength += Length

		if MaxLength >= maxdistance and Bullet ~= nil then
			Bullet:Destroy()
		end
	end)

	NewCaster.RayHit:Connect(OnHit)
end

local flashIndex = 1
function combat.shoot(target)
	if status:get("weaponCool") and not status:get("reloading") then
		status:set("weaponCool",false)
		
		local shot
		if core.checkDist(target,myRoot) > 60 then
			shot = 1
		else
			shot = burstamount
		end
		
		if not fullauto then
			for i = 1, shot do
				if myHuman.Health <= 0 or target.Parent.Humanoid.Health <= 0 then break end
				
				if core.checkDist(myRoot,target) < 7 then break end
				
				wait(firerate)
				status:set("mag",status:get("mag")-1)
				
				--flash:Emit(1)
				local FlashCoroutine = coroutine.create(function()
					barrel.MuzzleFlash:Emit(20)
					barrel.Dust:Emit(40)
					lightFlash.Enabled = true 
					wait(0.1) 
					lightFlash.Enabled = false 
				end)

				coroutine.resume(FlashCoroutine)
				--bullet.CFrame = m4.CFrame * NewCFrame(0,0.2,-2.5) --z: 0.5
				
				if shotgunpellets > 1 then
					for i = 1,shotgunpellets,1 do
						spawn(function()
							local bullet = combat.getBullet()
							pushBullet(bullet)
							bullet:Destroy()
						end)
					end
				else
					local bullet = combat.getBullet()
					pushBullet(bullet)
					bullet:Destroy()
				end
				
				local case = combat.getCase()
				case.CFrame = chamber.WorldCFrame
				case.Velocity = case.CFrame.RightVector * -20 * NewVector(1,-3,1)
				case:SetNetworkOwner(nil)
				core.spawn(function() 
					wait(0.05) 
					case.CanCollide = true 
					wait(2)
					case:Destroy()
				end)

				fireSound:Play()

				--Kick
				local original = m4.HingeAttach1.Position
				m4.HingeAttach1.Position = original - NewVector(0,0,0.2)
				tweenService:Create(m4.HingeAttach1, TweenInfo.new(0.1),{Position = original}):Play()
				
			end
		else
			local Params = RaycastParams.new()
			Params.FilterType = Enum.RaycastFilterType.Blacklist
			Params.FilterDescendantsInstances = {marine}
			
			local Success,Error = pcall(function() -- gonna make sure if something strange happens the whole script wont freeze
				for i = 1, status:get("mag") do
					if myHuman.Health <= 0 or target.Parent.Humanoid.Health <= 0 then break end
					
					local cansee = false
					local eyesight = workspace:Raycast(myHead.Position,(target.Parent.Head.Position - myHead.Position).Unit * detectionrange,Params)
					pcall(function()
						if eyesight.Instance and eyesight.Instance:IsDescendantOf(target.Parent) then
							cansee = true
						end
					end)
					
					if not cansee then break end
					
					wait(firerate)
					status:set("mag",status:get("mag")-1)

					--flash:Emit(1)
					local FlashCoroutine = coroutine.create(function()
						barrel.MuzzleFlash:Emit(20)
						barrel.Dust:Emit(40)
						lightFlash.Enabled = true 
						wait(0.1) 
						lightFlash.Enabled = false 
					end)

					coroutine.resume(FlashCoroutine)

					if shotgunpellets > 1 then
						for i = 1,shotgunpellets,1 do
							spawn(function()
								local bullet = combat.getBullet()
								pushBullet(bullet)
								bullet:Destroy()
							end)
						end
					else
						local bullet = combat.getBullet()
						pushBullet(bullet)
						bullet:Destroy()
					end

					local case = combat.getCase()
					case.CFrame = chamber.WorldCFrame
					case.Velocity = case.CFrame.RightVector * -20 * NewVector(1,-3,1)
					core.spawn(function() 
						wait(0.05) 
						case.CanCollide = true 
						wait(2)
						case:Destroy()
					end)

					fireSound:Play()

					--Kick
					local original = m4.HingeAttach1.Position
					m4.HingeAttach1.Position = original - NewVector(0,0,0.2)
					tweenService:Create(m4.HingeAttach1, TweenInfo.new(0.1),{Position = original}):Play()

				end
			end)
			
			if not Success then
				warn(Error)
			end
		end
		if status:get("mag") <= 0 then
			wait(delaybeforereloading)
			actions.reload()
		end

		--New thread here before
		wait(mySettings.M4.Delay.Value)
		status:set("weaponCool",true)
	end
end

function combat.throwGrenade(target)
	if status:get("weaponCool") and status:get("grenadeCool") then
		status:set("weaponCool",false)
		status:set("grenadeCool",false)
		actions.yieldWeapons()
		
		local g = marine.Grenade:Clone()
		g.Boom.PlayOnRemove = true
		g.Parent = workspace
		g.CanCollide = true
		g.CFrame = marine["Right Arm"].CFrame * NewCFrame(0,-1.3,0) * Angles(0,0,rad(90))
		g:SetNetworkOwner(nil)
		debrisService:AddItem(g,5)
		
		marine.Grenade.Transparency = 1
		
		local w = NewInstance("WeldConstraint",g)
		w.Part0 = marine["Right Arm"]
		w.Part1 = g
		
		throwAnimation:Play()
		marine.Grenade.Pin:Play()
		
		--Rotate and throw
		myHuman.AutoRotate = false
		for i=1,4 do
			wait(0.1)
			myRoot.CFrame = CFLookAt(NewVector(myRoot.Position.X,myRoot.Position.Y,myRoot.Position.Z),NewVector(target.Position.X,myRoot.Position.Y,target.Position.Z))
		end
		myHuman.AutoRotate = true
		
		if myHuman.Health <= 0 then
			return
		end
		
		throwAnimation:Stop()
		
		w.Part1 = nil
		local targetPos = target.Position + (target.Velocity)
		troubleshoot.mark(targetPos)
		local dist = core.checkDist(myRoot,target)
		local aimCFrame = CFLookAt(myRoot.Position,targetPos)
		--g.Velocity = (aimCFrame.LookVector + NewVector(0,1.1,0)) * NewVector(dist,dist*1.5,dist)
		g.Velocity = (myRoot.CFrame.LookVector + NewVector(0,1,0)) * NewVector(dist,dist*1.5,dist)
		
		--Wait until grenade is thrown before it can be primed
		touched = g.Touched:Connect(function(obj)
			if not obj:IsDescendantOf(marine) then
				touched:Disconnect()
				g.HitWall:Play()
				wait(0.5)
				local x = NewInstance("Explosion",workspace)
				x.Position = g.Position
				x.BlastRadius = 16
				x.BlastPressure = 0
				x.Hit:Connect(function(obj,dist)
					local human = obj.Parent:FindFirstChild("Humanoid")
					if human then
						core.applyDamage(human,20-dist)
					end
				end)
				g:Destroy()
				debrisService:AddItem(x,2)
			end
		end)
		
		local attach0 = g.Attach0
		local attach1 = g.Attach1
		local t = NewInstance("Trail",g)
		t.Attachment0 = attach0
		t.Attachment1 = attach1
		t.Lifetime = 0.5
		t.Color = ColorSequence.new(Color3.fromRGB(150,150,150))
		t.WidthScale = NumberSequence.new(1,0)
		
		core.spawn(function()
			wait(1)
			status:set("weaponCool",true)
			wait(5)
			status:set("grenadeCool",true)
			marine.Grenade.Transparency = 0
		end)
	end
end

local knife = marine.Knife
function combat.stab()
	
	local canStab = false
	for i,v in pairs(status:get("currentTarget").Parent:GetChildren()) do
		if v:IsA("BasePart") and core.checkDist(v,myRoot) < 7 then
			canStab = true
		end
	end
	if canStab then
		myHuman:MoveTo(status:get("currentTarget").Position)
		
		knife.Stab:Play()
		knife.Attack:Play()
		
		if random(2) == 1 then
			stabAnimation:Play(0.1,1,2)
		else
			stabPunchAnimation:Play()
		end
		
		local human = status:get("currentTarget").Parent.Humanoid
		core.applyDamage(human,random(MinimumDamage,MaximumDamage))
		if human.Health <= 0 then
			targeting.findTarget()
		end
		
		--stabAnimation.Stopped:Wait()
		wait(0.5)
	else
		wait(0.2)
	end
end

function combat.checkCluster(target)
	--Check for nearby allies
	for i,v in ipairs(status:get("activeAllies")) do
		if core.checkDist(target,v) < 30 then
			return false
		end
	end
	--Check if enemies are paired close together
	for i,v in ipairs(status:get("potentialTargets")) do
		if v ~= target then
			if core.checkDist(target,v) < 15 then
				return true
			end
		end
	end
	return false
end

return combat
