overload119
New Member
- Reaction score
- 5
Code:
function Trig_Carrion_Swarm_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A00I'
endfunction
function Trig_Carrion_Swarm_Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local location l = GetSpellTargetLoc()
local unit d = CreateDummy( GetOwningPlayer(u), u, 'A00M', GetUnitAbilityLevel(u, 'A00I'), 5)
call IssuePointOrderLoc( d, "carrionswarm", l )
call PolledWait(0.5)
call SetUnitPositionLoc( u, l )
call RemoveLocation(l)
endfunction
//===========================================================================
function InitTrig_Carrion_Swarm takes nothing returns nothing
set gg_trg_Carrion_Swarm = CreateTrigger( )
call TriggerRegisterAnyUnitEventNL( gg_trg_Carrion_Swarm, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Carrion_Swarm, Condition( function Trig_Carrion_Swarm_Conditions ) )
call TriggerAddAction( gg_trg_Carrion_Swarm, function Trig_Carrion_Swarm_Actions )
endfunction
My dummy unit isn't casting anything, even though he is able to (the spell requires no mana, requirements, etc )
Please help? It has been driving me crazy!