- Joined
- Jun 7, 2008
- Messages
- 440
Hey Im making a MultiFirebolt spell. Im new at this. This is what i have. My problem is, It wont show animation/stun/damage(None dealt(Yes I checked the properties of the spell.))
What am I doing wrong?
EDIT - How do I remove the BJs?
JASS:
function Trig_Stun_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01C' ) ) then
return false
endif
return true
endfunction
function Trig_Stun_Actions takes nothing returns nothing
local unit cast
local location p
local group g
local unit u
local unit dumb
set cast = GetTriggerUnit()
set g = GetUnitsInRangeOfLocAll(512.00, GetSpellTargetLoc())
set u = FirstOfGroup(g)
loop
exitwhen u==null
set u = FirstOfGroup(g)
set dumb = CreateUnitAtLoc(GetOwningPlayer(cast), 'h01X', GetUnitLoc(cast), 0.00)
call UnitAddAbilityBJ('A00F', GetTriggerUnit() )
call IssueTargetOrderBJ(dumb, "firebolt", u)
call UnitApplyTimedLifeBJ(3, 'BTLF', dumb)
call GroupRemoveUnit(g,u)
endloop
set g = null
set dumb = null
set cast = null
set p = null
endfunction
//===========================================================================
function InitTrig_Stun takes nothing returns nothing
set gg_trg_Stun = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stun, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Stun, Condition( function Trig_Stun_Conditions ) )
call TriggerAddAction( gg_trg_Stun, function Trig_Stun_Actions )
endfunction
EDIT - How do I remove the BJs?
Last edited: