Ok so I wanted to make a chain lightning spell that pulls all the hit units into the first or last unit hit by the chain lightning spell.. It can target Enemy Heroes, Enemy Creeps and for strategies Allied creeps.
Also I wanted to stun these units if they stray to far from each other and make a spirit of themselves move around themself while stunned.
Here is a script I found by Kercyn
Kercyn Link
Also I wanted to stun these units if they stray to far from each other and make a spirit of themselves move around themself while stunned.
Here is a script I found by Kercyn
Kercyn Link
- Vacuum ability
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to <your ability>
- Actions
- Set TargUnit = (Target unit of ability being cast)
- Set CastingUnit = (Position of (Casting unit))
- Unit - Move TargUnit instantly to CastingUnit
- Unit - Cause (Casting unit) to damage TargUnit, dealing 100.00 damage of attack type Spells and damage type Normal
- Custom script: call RemoveLocation(udg_CastingUnit)