• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell problem - doesn't work

Status
Not open for further replies.
Level 3
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!
 
Level 3
Joined
Jun 3, 2008
Messages
52
Why's there a "wait" statement in the loop? "Wait"s are not supposed to be used in Pick Every Unit in Region-type statements...
 
Level 14
Joined
Oct 27, 2007
Messages
1,395
No problem.. and yeah.. channeling works for some reason instead of casting..it doesn't make sense lol
 
Status
Not open for further replies.
Top