- Joined
- Nov 7, 2006
- Messages
- 36
I got a small problem with a spell (or 2). The spell is suposed to damage units in front of the caster.
This is how it looks:
Events:
A unit begins casting a spell
Conditions:
Ability being cast equall to "spell1" or "spell2"
Events:
Unit Group - Pick every unit in (units whithin 50.00 of ((position of (triggering unit)) offset by 100.00 towards (facing of (triggering unit)) degrees)) and do (actions)
-Loop - Actions
-If alla conditions are true then do actions else do actions...
If - Conditions
-(owner of triggering unit) is an enemy of (owner of Picked unit) equal to true
Then - Actions
-wait 0.30 seconds
-unit - cause (triggering unit) to damage (picked unit), dealing 50 damage of
attacktype normal and damage typ normal
Else - actions
-do nothing
I hope someone knows whats wrong with this trigger.
Thanks for your help!
This is how it looks:
Events:
A unit begins casting a spell
Conditions:
Ability being cast equall to "spell1" or "spell2"
Events:
Unit Group - Pick every unit in (units whithin 50.00 of ((position of (triggering unit)) offset by 100.00 towards (facing of (triggering unit)) degrees)) and do (actions)
-Loop - Actions
-If alla conditions are true then do actions else do actions...
If - Conditions
-(owner of triggering unit) is an enemy of (owner of Picked unit) equal to true
Then - Actions
-wait 0.30 seconds
-unit - cause (triggering unit) to damage (picked unit), dealing 50 damage of
attacktype normal and damage typ normal
Else - actions
-do nothing
I hope someone knows whats wrong with this trigger.
Thanks for your help!