Code
local group g = CreateGroup()
local unit c = GetTriggerUnit()//Твой юнит
local player p = GetOwningPlayer(c)
local unit u
call GroupEnumUnitsInRange(g, GetWidgetX(c), GetWidgetY(c), 900., null)
loop
set u = FirstOfGroup(g)
exitwhen u == null
call GroupRemoveUnit(g, u)
if GetUnitAbilityLevel(u, 'BEah') > 0 and IsUnitEnemy(u, p) then
//Действия
endif
endloop
call DestroyGroup(g)
set g = null
set p = null
set c = null