function Trig_Shipwreak_Loop_Func002A takes nothing returns nothing
call UnitDamageTargetBJ( GetEnumUnit(), GetEnumUnit(), 15.00, ATTACK_TYPE_SIEGE, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Shipwreak_Loop_Func004A takes nothing returns nothing
call UnitDamageTargetBJ( GetEnumUnit(), GetEnumUnit(), 15.00, ATTACK_TYPE_SIEGE, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Shipwreak_Loop_Func006A takes nothing returns nothing
call UnitDamageTargetBJ( GetEnumUnit(), GetEnumUnit(), 15.00, ATTACK_TYPE_SIEGE, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Shipwreak_Loop_Func008A takes nothing returns nothing
call UnitDamageTargetBJ( GetEnumUnit(), GetEnumUnit(), 15.00, ATTACK_TYPE_SIEGE, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Shipwreak_Loop_Func010A takes nothing returns nothing
call UnitDamageTargetBJ( GetEnumUnit(), GetEnumUnit(), 15.00, ATTACK_TYPE_SIEGE, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Shipwreak_Loop_Func012A takes nothing returns nothing
call UnitDamageTargetBJ( GetEnumUnit(), GetEnumUnit(), 15.00, ATTACK_TYPE_SIEGE, DAMAGE_TYPE_NORMAL )
endfunction
function Trig_Shipwreak_Loop_Actions takes nothing returns nothing
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Shipwreak_1), function Trig_Shipwreak_Loop_Func002A )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Shipwreak_2), function Trig_Shipwreak_Loop_Func004A )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Shipwreak_3), function Trig_Shipwreak_Loop_Func006A )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Shipwreak_4), function Trig_Shipwreak_Loop_Func008A )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Shipwreak_5), function Trig_Shipwreak_Loop_Func010A )
set bj_wantDestroyGroup = true
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Shipwreak_6), function Trig_Shipwreak_Loop_Func012A )
endfunction
//===========================================================================
function InitTrig_Shipwreak_Loop takes nothing returns nothing
set gg_trg_Shipwreak_Loop = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Shipwreak_Loop, 2 )
call TriggerAddAction( gg_trg_Shipwreak_Loop, function Trig_Shipwreak_Loop_Actions )
endfunction