- Joined
- Jun 11, 2009
- Messages
- 151
I can't get it to deal damage and pull units to middle, in a way you could say it's like Vacuum from Dota.
-
MySpell
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Myspell
-
-
Actions
-
Set Caster = (Triggering unit)
-
Set TempPoint = (Target point of ability being cast)
-
Set Target = (Picked unit)
-
Set TargetGroup = (Units within (200.00 x (Real((Level of MySpell for Caster)))) of TempPoint)
-
Set Damage = ((Intelligence of Caster (Exclude bonuses)) x (Level of MySpell for Caster))
-
Unit Group - Pick every unit in TargetGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of Target) is an enemy of (Owner of Caster)) Equal to True
-
-
Then - Actions
-
Custom script: call DestroyGroup(udg_TargetGroup)
-
Unit - Move Target instantly to TempPoint
-
Unit - Cause Caster to damage Target, dealing (Real(Damage)) damage of attack type Spells and damage type Normal
-
-
Else - Actions
-
Custom script: call RemoveLocation(udg_TempPoint)
-
-
-
-
-
-