- Joined
- Dec 14, 2007
- Messages
- 41
JASS:
function Trig_Fire_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A003' ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Actions takes nothing returns nothing //<<<------Error herre
call CasterCastAbility(GetOwningPlayer(GetSpellAbilityUnit()),'A001',"thunderbolt",GetAttachedUnit(GetSpellAbilityUnit()),"target",true)
call CleanAttachedVars(GetSpellAbilityUnit())
//===========================================================================
function InitTrig_Fire takes nothing returns nothing
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Fire, Condition( function Trig_Fire_Conditions ) )
call TriggerAddAction( gg_trg_Fire, function Trig_Fire_Actions )
endfunction
i get the error
Code:
Syntax error
Last edited by a moderator: