function Trig_Untitled_Trigger_004_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00B' ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_004_Copy_Copy_Actions takes nothing returns nothing
call PauseUnitBJ( true, GetTriggerUnit() )
call SetUnitAnimation( GetTriggerUnit(), "spell one" )
call PauseUnitBJ( false, GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h000', GetOwningPlayer(GetTriggerUnit()), GetRandomLocInRect(GetEntireMapRect()), bj_UNIT_FACING )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "rainoffire", GetUnitLoc(GetTriggerUnit()) )
call UnitApplyTimedLifeBJ( 20.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h002', GetOwningPlayer(GetTriggerUnit()), GetRandomLocInRect(GetEntireMapRect()), bj_UNIT_FACING )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "rainoffire", GetUnitLoc(GetTriggerUnit()) )
call UnitApplyTimedLifeBJ( 20.00, 'BTLF', GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_004_Copy_Copy takes nothing returns nothing
set gg_trg_Untitled_Trigger_004_Copy_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_004_Copy_Copy, EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_Untitled_Trigger_004_Copy_Copy, Condition( function Trig_Untitled_Trigger_004_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_004_Copy_Copy, function Trig_Untitled_Trigger_004_Copy_Copy_Actions )
endfunction