local vector_list = { [1] = Vector(-672,-736,160),
[2] = Vector(544,32,160),
[3] = Vector(-416,-64,160)}
for i = 1, #vector_list do
if RollPercentage(40) then
ParticleManager:SetParticleControl( particle, 0, vector_list[1] )
local uni = FindUnitsInRadius(teams, vector_list[1], nil, 150, DOTA_UNIT_TARGET_TEAM_BOTH, DOTA_UNIT_TARGET_ALL, DOTA_UNIT_TARGET_FLAG_NONE, FIND_ANY_ORDER, false)
for i, un in ipairs(uni) do
if un:IsHero() then
un:ForceKill(false)
end
end
elseif RollPercentage(60) then
local vec = ParticleManager:SetParticleControl( particle, 0, vector_list[2])
local units = FindUnitsInRadius(teams, vector_list[2], nil, 150, DOTA_UNIT_TARGET_TEAM_BOTH, DOTA_UNIT_TARGET_ALL, DOTA_UNIT_TARGET_FLAG_NONE, FIND_ANY_ORDER, false)
for i, un in ipairs(units) do
if un:IsHero() then
un:ForceKill(false)
end
end
elseif RollPercentage(50) then
ParticleManager:SetParticleControl( particle, 0, vector_list[3])
local unit = FindUnitsInRadius(teams, vector_list[3], nil, 150, DOTA_UNIT_TARGET_TEAM_BOTH, DOTA_UNIT_TARGET_ALL, DOTA_UNIT_TARGET_FLAG_NONE, FIND_ANY_ORDER, false)
for i, un in ipairs(unit) do
if un:IsHero() then
un:ForceKill(false)
end
end
end
end