The trigger is meant to fire off like this:
When the ability is cast, the target's health drains for 10 seconds or until it dies. When the unit dies, every unit in a 200 radius is damaged for 1/10th the caster's current mana.
Now, that's all done, but there are 2 things that I can't do:
one: make it only damage enemies
two: give the "explosion" an effect.
My dummy for this is called "dummy explosion", and the trigger looks like this:
Events:
Unit - A unit Begins casting an ability
Conditions:
(Ability being cast) Equal to Ignition
Actions:
Wait until (((Target unit of ability being cast) is dead) Equal to True), checking every 0.10 seconds
Unit - Create 1 dummy explosion for (Owner of (Casting unit)) at (Position of (Dying unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Wait 1.00 seconds
Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type dummy explosion) and do (Unit - Remove (Picked unit) from the game)
For some reason the dummy won't even spawn. Any ideas?
When the ability is cast, the target's health drains for 10 seconds or until it dies. When the unit dies, every unit in a 200 radius is damaged for 1/10th the caster's current mana.
Now, that's all done, but there are 2 things that I can't do:
one: make it only damage enemies
two: give the "explosion" an effect.
My dummy for this is called "dummy explosion", and the trigger looks like this:
Events:
Unit - A unit Begins casting an ability
Conditions:
(Ability being cast) Equal to Ignition
Actions:
Wait until (((Target unit of ability being cast) is dead) Equal to True), checking every 0.10 seconds
Unit - Create 1 dummy explosion for (Owner of (Casting unit)) at (Position of (Dying unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Wait 1.00 seconds
Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type dummy explosion) and do (Unit - Remove (Picked unit) from the game)
For some reason the dummy won't even spawn. Any ideas?