- Joined
- Mar 26, 2019
- Messages
- 54
I try to make a "teleport" skill, but for some reason, it get really weird. When I cast the ability, for some reason, the mana get consumed, and I get satisfying effect, but the cooldown is not fired. Here is my trigger:
-
Flash
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Flash
-
Actions
- Set temp_point[1] = (Position of (Triggering unit))
- Set temp_point[0] = (Target point of ability being cast)
- Unit - Create 1 DummyChan for (Owner of (Triggering unit)) at temp_point[1] facing Default building facing degrees
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Unit - Make (Last created unit) Explode on death
- Unit - Add Dummy Flash to (Last created unit)
- Unit - Order (Last created unit) to Neutral Tinker - Cluster Rockets temp_point[0]
- Unit - Hide (Triggering unit)
- Unit - Move (Triggering unit) instantly to temp_point[0]
- Custom script: call RemoveLocation(udg_temp_point[1])
- Custom script: call RemoveLocation(udg_temp_point[0])
- Wait 0.75 game-time seconds
- Set FlashExp[(Player number of (Owner of (Triggering unit)))] = (FlashExp[(Player number of (Owner of (Triggering unit)))] + 1)
- Unit - Unhide (Triggering unit)
- Selection - Select (Triggering unit) for (Owner of (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Flash for (Triggering unit)) Less than or equal to 4
- FlashExp[(Player number of (Owner of (Triggering unit)))] Greater than or equal to (15 x ((Level of Flash for (Triggering unit)) x (Level of Flash for (Triggering unit))))
-
Then - Actions
- Unit - Increase level of Flash for (Triggering unit)
- Set temp_player[1] = (Player group((Owner of (Triggering unit))))
- Game - Display to temp_player[1] the text: Flash level up!
- Custom script: call DestroyForce(udg_temp_player[1])
- Else - Actions
-
If - Conditions
-
Events