I'm trying to make a spell that creates a dummy unit at 90% chance to cast stun spell (sleep) to target. After 2-10 seconds (random) the buff should be removed from target unit. There may be several units casting this ability at the same time, but never more than 100. I'm using wait function so I must save target unit into a variable. But how can I do that? Is it possible using arrays?