Hello Hive,
I created a Trigger spell based on Storm Bolt, everything is working properly except for 1 thing. If the caster moves before the bolt hits the target, it does no damage. Is there a way to fix this? Here is my spell trigger...
Thanks in advance.
I created a Trigger spell based on Storm Bolt, everything is working properly except for 1 thing. If the caster moves before the bolt hits the target, it does no damage. Is there a way to fix this? Here is my spell trigger...
-
Arcane Blast
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Arcane Blast
-
Actions
- -------- Special Effect Based on Level --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Integer((Real((Level of (Ability being cast) for (Casting unit)))))) Greater than or equal to 2
-
Then - Actions
- Special Effect - Create a special effect attached to the weapon of (Casting unit) using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Integer((Real((Level of (Ability being cast) for (Casting unit)))))) Equal to 3
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of (Casting unit) using ArcaneExplosion.mdx
- Else - Actions
-
If - Conditions
- -------- Wait Ingame to Compensate for Missile Travel (Waiting TIme = Distance Between Units/Missile Speed) --------
- Wait ((Distance between (Position of (Casting unit)) and (Position of (Target unit of ability being cast))) / 1500.00) game-time seconds
- -------- Damage Target Unit (Damage = (Ability Level x 150) + (Hero Intelligence x Ability Level)) --------
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((150.00 x (Real((Level of (Ability being cast) for (Casting unit))))) + ((Real((Intelligence of (Casting unit) (Include bonuses)))) x (Real((Level of (Ability being cast) for (Casting unit)))))) damage of attack type Spells and damage type Magic
-
Events
Thanks in advance.