Trigger:
- Kage Loop
- Events
- Time - Every 0.15 seconds of game time
- Conditions
- Actions
- Set kagePoint = (kagePoint offset by (Real(kageCount)) towards (Angle from kagePoint to (Position of kageTarget)) degrees)
- Set kageCount = (kageCount + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Distance between kagePoint and (Position of kageTarget)) Less than or equal to 10.00
- Then - Actions
- Unit - Pause kageTarget
- Else - Actions
- Unit - Create 1 Kage Mane for (Owner of kageCaster) at kagePoint facing (Angle from kagePoint to (Position of kageTarget)) degrees
- Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- kageCount Greater than 100
- Then - Actions
- Unit Group - Pick every unit in (Units owned by (Owner of kageCaster) of type Kage Mane) and do (Actions)
- Loop - Actions
- Unit - Remove (Picked unit) from the game
- Loop - Actions
- Unit - Unpause kageCaster
- Unit - Unpause kageTarget
- Trigger - Turn off (This trigger)
- Unit Group - Pick every unit in (Units owned by (Owner of kageCaster) of type Kage Mane) and do (Actions)
- Else - Actions
- If - Conditions
- Events
So what this spell does is create a line of units that chase an enemy, and when it reaches the opponent, it stuns them.
However, for some reason I probably overlooked the distance between each unit being made per loop gets bigger each time. From here: Set kageCount = (kageCount + 1), it should only increment its distance by 1.
I'm really clueless, and it's probably something stupid but I could really use the help.. thanks!