the spell kills my friendly units and my self?
so where is the problem?
-
TimeWalk Start
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Time Walk
-
Actions
- Set TW_Unit = (Triggering unit)
- Set TW_TrigUnitPoint = (Position of TW_Unit)
- Set TW_DashPoint = (Target point of ability being cast)
- Set TW_Angle = (Angle from TW_TrigUnitPoint to TW_DashPoint)
- Set TW_MaxDistance = (Distance between TW_TrigUnitPoint and TW_DashPoint)
- Set TW_DistanceTraveled = 0.00
- Unit - Turn collision for TW_Unit Off
- Unit - Pause TW_Unit
- Animation - Play (Triggering unit)'s spell animation
- Animation - Change TW_Unit's vertex coloring to (0.00%, 0.00%, 0.00%) with 50.00% transparency
- Special Effect - Create a special effect attached to the left hand of TW_Unit using <Empty String>
- Set TW_Unit_effect[1] = (Last created special effect)
- Special Effect - Create a special effect attached to the right hand of TW_Unit using <Empty String>
- Set TW_Unit_effect[2] = (Last created special effect)
- Custom script: call RemoveLocation(udg_TW_TrigUnitPoint)
- Custom script: call RemoveLocation(udg_TW_DashPoint)
- Wait 0.50 seconds
- Trigger - Turn on TimeWalk Dash <gen>
-
Events
-
TimeWalk Dash
-
Events
- Time - Every 0.01 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- TW_DistanceTraveled Greater than or equal to TW_MaxDistance
-
Then - Actions
- Set TW_DistanceTraveled = 0.00
- Set TW_DashPoint = (Position of TW_Unit)
- Unit - Turn collision for TW_Unit On
- Animation - Change TW_Unit's vertex coloring to (8.50%, 48.00%, 100.00%) with 0.00% transparency
- Special Effect - Destroy TW_Unit_effect[1]
- Special Effect - Destroy TW_Unit_effect[2]
- Unit - Create 1 Dummy Unit WALKER for (Owner of TW_Unit) at TW_DashPoint facing Default building facing degrees
- Unit - Set level of Time Walk Dummy for (Last created unit) to (Level of AoE Life Drain for TW_Unit)
- Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
- Unit - Add a 6.00 second Generic expiration timer to (Last created unit)
- Unit - Unpause TW_Unit
- Custom script: call RemoveLocation(udg_TW_DashPoint)
- Trigger - Turn off (This trigger)
-
Else - Actions
- Set TW_TrigUnitPoint = (Position of TW_Unit)
- Set TW_DashPoint = (TW_TrigUnitPoint offset by 15.00 towards TW_Angle degrees)
- Unit - Move TW_Unit instantly to TW_DashPoint
- Set TW_DistanceTraveled = (TW_DistanceTraveled + 15.00)
-
Destructible - Pick every destructible within 100.00 of TW_DashPoint and do (Actions)
-
Loop - Actions
- Destructible - Kill (Picked destructible)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 100.00 of TW_DashPoint matching (TW_Unit Not equal to (Matching unit))) and do (Actions)
-
Loop - Actions
- Unit - Cause TW_Unit to damage (Picked unit), dealing 100.00 damage of attack type Normal and damage type Normal
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TW_TrigUnitPoint)
- Custom script: call RemoveLocation(udg_TW_DashPoint)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
so where is the problem?