ReVolver
Mega Super Ultra Cool Member
- Reaction score
- 608
I was on msn with xxxconanxxx and he taught me alot of stuff about JASS and showed me how everything worked and I made this spell.
Its a basic spell but I least I had the gut to make it in JASS.
Code:
function Trig_Ghost_Conditions takes nothing returns boolean
return( GetSpellAbilityId() == 'AUan' )
endfunction
function Trig_Ghost_Actions takes nothing returns nothing
local unit u=GetTriggerUnit()
local location l=GetUnitLoc(u)
local unit d
call SetUnitAnimation (u,"death")
call CreateUnitAtLoc (Player(0),'hpea',l,0)
set d=GetLastCreatedUnit()
call IssueTargetOrder(d,"attack",u)
call RemoveLocation(l)
set l=null
set u=null
set d=null
endfunction
//===========================================================================
function InitTrig_Ghost takes nothing returns nothing
set gg_trg_Ghost = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ghost, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition(gg_trg_Ghost, Condition(function Trig_Ghost_Conditions))
call TriggerAddAction(gg_trg_Ghost, function Trig_Ghost_Actions)
endfunction
Its a basic spell but I least I had the gut to make it in JASS.