adeoin
Member
- Reaction score
- 11
So my jass trigger came up with alot of syntax errors and i got the feeling i did something very wrong. I'm done yet but i just wanna get it checked before i continue. Tell me anything wrong with it
JASS:
function Trig_JASS_Lightning_Ba_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 039;A000039; ) ) then
return false
endif
return true
endfunction
function Trig_JASS_Lightning_Ba_Actions takes nothing returns nothing
endfunction
set u = GetSpellAbilityUnit
set p = GetUnitLoc(GetSpellTargetUnit)
set r = GetUnitFacing(u)
call CreateUnitAtLoc( h000 , 1, p, r)
call QueueUnitAnimation ( GetLastCreatedUnit , Attack)
//===========================================================================
function InitTrig_JASS_Lightning_Ba takes nothing returns nothing
set gg_trg_JASS_Lightning_Ba = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_JASS_Lightning_Ba, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_JASS_Lightning_Ba, Condition( function Trig_Lightning_Ball_Copy_Conditions ) )
call TriggerAddAction( gg_trg_JASS_Lightning_Ba, function Trig_Lightning_Ball_Copy_Actions )
endfunction