How to detect which unit i just used my item on?

Status
Not open for further replies.
Level 3
Joined
Aug 24, 2014
Messages
22
Very noobish question, but for example: Whenever I use an item on a unit, a dummy unit appears and casts slow on the targeted unit. But how do I make the dummy unit to cast slow on the targeted unit? Thanks!
 
Level 3
Joined
Aug 24, 2014
Messages
22
Not really what I meant, I just want to know how to make the dummy unit to cast spell on the targeted unit. The slow is only an example :p Sorry for the misunderstanding
 
Level 12
Joined
May 22, 2015
Messages
1,051
I'm not sure if there is an event variable for this. You could try just detecting the "starts the effect of an ability" event and use "target unit of ability being cast". You'd compare the ability instead of the item.
 
Status
Not open for further replies.
Top