i got some problem with my spell i havent added that they will cast the spell but i will create a unit at the picked unit loc but i causes my world editor to crash :/ can anyone tell me why?
JASS:
function trig_test_Condition01 takes nothing returns nothing
if ( not ( GetSpellAbilityId() == 'AHtc' ) ) then
return false
endfunction
function trig_test_condtion02 takes nothing returns nothing
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function trig_test_action takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocMatching(( 600 * I2R(GetUnitAbilityLevelSwapped( 'AHtc', GetTriggerUnit())) )
endfunction
function trig_test_func001 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hfoo', Player(GetTriggerUnit), GetRectCenter(GetEnumUnit())), 0.00
endfunction
//==================================================================
function InitTrig_test takes nothing returns nothing
set gg_trg_test = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_test, EVENT_PLAYER_UNIT_SPELL_CAST )
call trig_test_condtion01
call trig_test_action
call trig_test_condtion02
call trig_test_func001
endfunction