• 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.

Need help with chain spell

Status
Not open for further replies.
Level 2
Joined
Oct 4, 2006
Messages
7
Im making a chain spell, but the problem is that its only jump one time, and I can't find whats wrong.
So if someone would like to look at it and tell me whats wrong, it would be appriciated.

Here is the code (short version):

Unit - A unit Starts the effect of an ability

(Ability being cast) Equal to Frost Chain

Set FrostChainTarget = (Target unit of ability being cast)
Unit Group - Pick every unit in (Random 1 units from (Units within 500.00 of (Position of FrostChainTarget) matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and ((((Matching unit) is alive) Equal to True) and ((Matching unit) Not equal to FrostCha and do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of FrostChainTarget) facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Set FrostChainTarget = (Picked unit)
Unit - Add Frost Chain (dmg) to (Last created unit)
Unit - Order (Last created unit) to Special Archimonde - Finger Of Death (Target unit of ability being cast)
 
Status
Not open for further replies.
Top