feelthless
New Member
- Reaction score
- 1
hiya guys im trying to make Dota's Undying's Soul Rip ability. Here is the description Redirects the flow of living energy through a target foe, damaging them odepending on how many units are near it. 25 damage for each unit.|n|cffffcc00Level 1|r - 7 units max.|n|cffffcc00Level 2|r - 14 units.|n|cffffcc00Level 3|r - 21 units max.
Here is the trigger that i made :
So...what's wrong :? pls help. 10x in advance
Here is the trigger that i made :
JASS:
sr
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Soul Rip
(Level of Soul Rip for (Casting unit)) Equal to 1
Actions
Set UnitsGroup = (Units within 1000.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) is alive) Equal to True))
Set NumberUnits = (Number of units in UnitsGroup)
If (NumberUnits Greater than 7) then do (Set NumberUnits = 7) else do (Do nothing)
Unit Group - Pick every unit in (Random NumberUnits units from UnitsGroup) and do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of Caster) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Add SoulRipDummy to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Unit - Add a 2.50 second Generic expiration timer to (Last created unit)
So...what's wrong :? pls help. 10x in advance