- Joined
- Aug 20, 2004
- Messages
- 65
I've never used the action "wait until condition" before, but I thought I could use it for a spell I want in a map. The idea is a spear that banishes the target on impact. Here is the trigger.
-
New Spectral Dagger
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Spectral Spear (New)
-
-
Actions
-
Set Temp_Point = (Position of (Target unit of ability being cast))
-
Unit - Create 1 DaggerCaster for (Owner of (Casting unit)) at Temp_Point facing (Facing of (Casting unit)) degrees
-
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Spectral Banish (Neutral Hostile) to (Last created unit)
-
Unit - Set level of Spectral Banish (Neutral Hostile) for (Last created unit) to (Level of Spectral Spear (New) for (Casting unit))
-
Wait until (((Target unit of ability being cast) has buff Spectral Spear ) Equal to True), checking every (0.10 - 0.09) seconds
-
Unit - Order (Last created unit) to Human Blood Mage - Banish (Target unit of ability being cast)
-
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (60.00 + (0.00 + (40.00 x (Real((Level of Spectral Spear for (Casting unit))))))) damage of attack type Spells and damage type Normal
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-