Hey, I need help with a spell called Wind Thrust wich basicly is like a Carrion Swarm wich takes all units that it hits with it untill it disapear (when it reach position of ability being cast)
This is what I got so faar.

and second, it only work the first time I cast it.
This is what I got so faar.
-
Wind Thrust
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Wind Thrust
-
-

Actions
-


Set WindThrust_Caster = (Casting unit)
-


Set WindThrustDirection = (Facing of WindThrust_Caster)
-


Unit - Create 1 Wind Thrust (Dummy) for (Owner of WindThrust_Caster) at (Position of WindThrust_Caster) facing Default building facing degrees
-


Set WindThrust_Dummy = (Last created unit)
-


Trigger - Turn on Wind Thrust Knockback <gen>
-


Wait until ((Distance between (Position of WindThrust_Dummy) and (Target point of ability being cast)) Less than or equal to 15.00), checking every 0.10 seconds
-


Trigger - Turn off Wind Thrust Knockback <gen>
-


Unit - Remove WindThrust_Dummy from the game
-


Set WindThrust_Real = 0.00
-
-
-
Wind Thrust Knockback
-

Events
-


Time - Every 0.05 seconds of game time
-
-

Conditions
-

Actions
-


Unit - Move WindThrust_Dummy instantly to ((Position of WindThrust_Dummy) offset by (0.00 + WindThrust_Real) towards WindThrustDirection degrees)
-


Set WindThrust_Real = (WindThrust_Real + 3.00)
-


Unit Group - Pick every unit in (Units within 175.00 of (Position of WindThrust_Dummy) matching (((Picked unit) belongs to an enemy of (Owner of WindThrust_Caster)) Equal to True)) and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked unit) belongs to an enemy of (Owner of WindThrust_Caster)) Equal to True
-
-





Then - Actions
-






Unit - Move (Picked unit) instantly to ((Position of WindThrust_Dummy) offset by 10.00 towards WindThrustDirection degrees)
-






Unit - Cause WindThrust_Caster to damage (Picked unit), dealing (2.50 x ((Real((Level of Wind Thrust for WindThrust_Caster))) + 2.50)) damage of attack type Spells and damage type Normal
-






Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Orc\FeralSpirit\feralspirittarget.mdl
-






Special Effect - Destroy (Last created special effect)
-
-





Else - Actions
-






Do nothing
-
-
-
-
-
-
Last edited:
