Cloak_Master
Active Member
- Reaction score
- 41
Hey guys, I can pretty much do a lot in GUI, but I'm pretty dumb in JASS. This is my dilema... I am trying to make a unit get a spell and cast it after he casts this other spell, then remove it. The problem is, it doesn't remove. Heres the code... Thanks for any help!
Code:
function Trig_Illusion_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A012' ) ) then
return false
endif
return true
endfunction
function Trig_Illusion_Actions takes nothing returns nothing
local unit y
call TriggerSleepAction( 1.00 )
call UnitAddAbilityBJ( 'A013', GetSpellAbilityUnit() )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( GetSpellAbilityUnit(), "windwalk" )
call TriggerSleepAction( 0.10 )
call UnitRemoveAbilityBJ( 'A013', y )
endfunction