GameOver[GR]
New Member
- Reaction score
- 11
Another ability i imagined
Ability Info
Targets allowed : enemy (creep , hero , even air mobs)
When casting to the enemy stun him for 3.5 seconds,
Blink Caster to the unit and order him to hit the unit
set Caster's attack speed = 300 % for 3 seconds.
Thanks in addition because i know you will help
Last Created Ability [ On My Own ]
Ability Info
Targets allowed : enemy (creep , hero , even air mobs)
When casting to the enemy stun him for 3.5 seconds,
Blink Caster to the unit and order him to hit the unit
set Caster's attack speed = 300 % for 3 seconds.
Thanks in addition because i know you will help
Last Created Ability [ On My Own ]
Code:
function Trig_MassEntangle_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AC44' ) ) then
return false
endif
return true
endfunction
function Trig_MassEntangle_Func003001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_MassEntangle_Func003A takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h000', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetEnumUnit()), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "entanglingroots", GetEnumUnit() )
endfunction
function Trig_MassEntangle_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocMatching(600.00, GetUnitLoc(GetTriggerUnit()), Condition(function Trig_MassEntangle_Func003001003)), function Trig_MassEntangle_Func003A )
endfunction
//===========================================================================
function InitTrig_MassEntangle takes nothing returns nothing
set gg_trg_MassEntangle = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_MassEntangle, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_MassEntangle, Condition( function Trig_MassEntangle_Conditions ) )
call TriggerAddAction( gg_trg_MassEntangle, function Trig_MassEntangle_Actions )
endfunction