I'm trying to make a spell like shockwave which deals damage to all units in a straight line.
I've never made a spell like this before, so I'm asking for help.
I've never made a spell like this before, so I'm asking for help.
-
Voltric Shot
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Voltric Shot (Heroes)
-
-

Actions
-


-------- Math --------
-


Set Spell_VoltricShotDamage = ((Level of (Triggering unit)) x 50)
-


-------- Points --------
-


Set Spell_VoltricPoint = (Target point of ability being cast)
-


Set Spell_VoltricShotCasterLocatio = (Position of (Triggering unit))
-


-------- Angles --------
-


Set Spell_VoltricShotAngle = (Angle from Spell_VoltricShotCasterLocatio to Spell_VoltricPoint)
-


-------- Group --------
-


Set Spell_VoltricShotGroup = (Units within 100.00 of Spell_VoltricShotCasterLocatio)
-


-------- Actions --------
-


Unit Group - Pick every unit in Spell_VoltricShotGroup and do (Actions)
-



Loop - Actions
-




Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (Real(Spell_VoltricShotDamage)))
-
-
-


-------- Desecrate Variables --------
-


Custom script: call DestroyGroup(udg_Spell_VoltricShotGroup)
-


Custom script: call RemoveLocation(udg_Spell_VoltricPoint)
-


Custom script: call RemoveLocation(udg_Spell_VoltricShotCasterLocatio)
-
-




