- Joined
- Jun 20, 2005
- Messages
- 108
I'm having problems with this new spell I'm making. It should damage surrounding units by 3% of its total hit points each second, for 20 seconds.
Here's the first version of the spell, but it obviously doesn't work because something might overlap the "triggering unit":
Thanks for you help
Here's the first version of the spell, but it obviously doesn't work because something might overlap the "triggering unit":
-
Actions
- Set L_POINT = (Target point of ability being cast)
-
For each (Integer A) from 1 to 20, do (Actions)
-
Loop - Actions
- Set L_UGROUP = (Units within 500.00 of L_POINT matching (((((Matching unit) is A Hero) Equal to True) and ((Level of Invulnerable (Neutral) for (Matching unit)) Not equal to 1)) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
-
Unit Group - Pick every unit in L_UGROUP and do (Actions)
-
Loop - Actions
- Unit - Set life of (Matching unit) to ((Life of (Matching unit)) - ((Max life of (Matching unit)) x 0.03))
-
Loop - Actions
-
Loop - Actions
Thanks for you help