A dummy is a unit with 1 purpose: casting a dummy spell before dying.
A dummy would basically be invisible, invulnerable, unselectable, and having a spell that costs no mana. The purpose is having a real spell cast by a real unit to have other effects. For instance: when a unit casts storm bolt, you could create a dummy unit and make it cast "entangling roots" on the target unit of ability being cast.
Basically this would result in 2 spells that look like 1, doing this: damaging the target, stunning it and entangling it. This way you created a new custom spell.
Make sure the dummy has a "locust" ability, rendering him invulnerable and unselectable. Next, change the appearance to "no model", finally, don't forget to add an expiration timer (of 1 second) to the dummy unit with a trigger when you create the dummy. This causes the dummy to be removed after 1 second.