function Trig_XG_001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(gg_unit_Hblm_0002)))
endfunction
function Trig_XG_Actions takes nothing returns nothing
local group g = CreateGroup( )
local unit u
local real x = GetUnitX( gg_unit_Hblm_0002 )
local real y = GetUnitY( gg_unit_Hblm_0002 )
local real a = I2R(GetUnitAbilityLevel(gg_unit_Hblm_0002,'A353'))*50.+300.
call GroupEnumUnitsInRange( g, x, y, a, Condition( function Trig_XG_001 ) )
loop
set u = FirstOfGroup( g )
exitwhen u==null
call UnitDamageTarget(gg_unit_Hblm_0002,u,I2R(GetHeroInt(gg_unit_Hblm_0002,false)),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEMOLITION, null)
call GroupRemoveUnit(g,u)
endloop
call DestroyGroup(g)
set g = null
endfunction
//===========================================================================
function InitTrig_XG takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterTimerEvent( t, 1.00, true )
call TriggerAddAction(t, function Trig_XG_Actions)
set t = null
endfunction