Hello, I am trying to make a skill for my hero, it works right, the first time its used, it works fine. 2nd time, only shoots 2 bolts. Everytime after that it only shoots one bolt. Can anyone tell me why its not working?
Code:
Element Bolt Fire
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Element Bolt
(Unit-type of (Casting unit)) Equal to Mountain King
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Element Bolt for (Casting unit)) Equal to 1
Then - Actions
Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by 150.00 towards 90.00 degrees) facing (Facing of (Casting unit)) degrees
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 Dummy Caster 2 (Ground) for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by 150.00 towards 270.00 degrees) facing (Facing of (Casting unit)) degrees
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Else - Actions