HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

EVENT_PLAYER_UNIT_SPELL_FINISH ...GetSpellTargetUnit() ?

06-01-2006, 07:54 PM#1
Sharingan
Somehow, I can't get the SpellTargetUnit() if i use that event...is there another function which would do the job?
06-01-2006, 08:04 PM#2
shadow1500
Use the spell effect event to store the target into the unit with handle vars, then retrive it when you use spell finish event.
06-01-2006, 08:06 PM#3
Sharingan
Argh...if there is no other way...
06-01-2006, 08:25 PM#4
Captain Griffen
Unit begins effect of. Can't remember the JASS off the top of my thread, _SPELL_EFFECT I think.
06-02-2006, 11:31 PM#5
COOLer
Collapse JASS:
call TriggerRegisterAnyUnitEventBJ(MySpellTrigger,EVENT_PLAYER_UNIT_SPELL_EFFECT)
Hope this helps