Hello Hive!
I am working a Frost Arrow Spell that deals damage partially based on the casters intelligence. It works when I make the unit cast Frost Arrows, but the extra damage is not being dealt when the unit auto casts it.
Here is my simple trigger:
Here is the auto-cast that does work which is what I based my Frost Arrows trigger off of:
I am working a Frost Arrow Spell that deals damage partially based on the casters intelligence. It works when I make the unit cast Frost Arrows, but the extra damage is not being dealt when the unit auto casts it.
Here is my simple trigger:
-
Frost Arrows
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Frost Arrows (Alleria WIndrunner)
-
Actions
- -------- Store Casting Unit --------
- Set FrostArrowCaster = (Casting unit)
- -------- Store Target Unit --------
- Set FrostArrowTarget = (Target unit of ability being cast)
- -------- Wait Ingame to Compensate for Missile Travel (Waiting TIme = Distance Between Units/Missile Speed) --------
- Wait ((Distance between (Position of (Casting unit)) and (Position of FrostArrowTarget)) / 1500.00) game-time seconds
- -------- Special Effect Based on Level --------
- -------- Damage Target Unit (Damage = (Ability Level x 5) + (Hero Intelligence/2 x Ability Level)) --------
- Unit - Cause FrostArrowCaster to damage FrostArrowTarget, dealing (((Real((Level of (Ability being cast) for (Casting unit)))) x 5.00) + ((Real((Intelligence of (Casting unit) (Include bonuses)))) x ((Real((Level of (Ability being cast) for (Casting unit)))) / 2.00))) damage of attack type Spells and damage type Magic
-
Events
Here is the auto-cast that does work which is what I based my Frost Arrows trigger off of:
-
Flash Heal
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Flash Heal (Calia Menethil)
-
Actions
- Unit - Set life of (Target unit of ability being cast) to (((Life of (Target unit of ability being cast)) + (20.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)))) x 0.50)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (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 origin of (Casting unit) using DivineRage.mdx
- Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using DivineRage.mdx
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of (Ability being cast) for (Casting unit)) Equal to 3
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using HolyBlast.mdx
- Else - Actions
-
If - Conditions
-
Events