I am making a skill but somethings wrong but i don't know what
Thanks for your wasted time
- Event:
- Unit - Begins Casting an ability
- Conditions:
- (Ability being cast) Equal to storm bolt
- Actions:
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of storm bolt for (Casting Unit)) Equal to 1
- Then - Actions
- Wait ((Distance between (Position of (Casting Unit)) and (Position of (Target unit of ability being cast))) / 700.00 seconds
- Unit - Create 1 Dummy for (Owner of(Casting unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
- Set StormBoltU = (Last created unit)
- Unit - Add Thunder Clap to StormBoltU
- Unit - Set level of Thunder Clap for StormBoltU to (Level of Storm Bolt (Casting unit))
- Unit - Order StormBoltU to Human Mountain King - Thunder Clap
- Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Set StormBoltSpecEffect[1] = (Last created special effect)
- Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Set StormBoltSpecEffect[1] = (Last created special effect)
- Wait 1.00 seconds
- Unit - Remove StormBoltU from the game
- Special Effect - Destroy StormBoltSpecEffect[1]
- Special Effect - Destroy StormBoltSpecEffect[2]
Thanks for your wasted time