Hi guys!
So I'm making my map and I want to do a triggered spell so I can make custom damage depending on the units stats. I made a trigger that calculates the distance between the caster and the target and it does damage to the target but it's not working correctly. I want to know if there is a way to make it working.
Here's my trigger:
Please?
So I'm making my map and I want to do a triggered spell so I can make custom damage depending on the units stats. I made a trigger that calculates the distance between the caster and the target and it does damage to the target but it's not working correctly. I want to know if there is a way to make it working.
Here's my trigger:
-
Fireball
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Casting unit) Equal to Evelyn_Willow
-


(Ability being cast) Equal to Fireball - Evelyn ================
-
-

Actions
-


Set Evelyn_Target = (Target unit of ability being cast)
-


Wait (((Distance between (Position of Evelyn_Willow) and (Position of Evelyn_Target)) / 1500.00) - 0.20) seconds
-


Unit - Cause Evelyn_Willow to damage Evelyn_Target, dealing (150.00 + ((Evelyn_Fireball_Skill x Evelyn_Inteligence) + ((Random real number between 1.50 and 2.00) x Evelyn_Elementalism))) damage of attack type Spells and damage type Normal
-
-
Please?
