Spell1 Init
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to YourSpell
Actions
Set Hero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
Set Target[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
Set Count[(Player number of (Owner of (Triggering unit)))] = 0
Spell2
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Count[(Integer A)] Greater than or equal to 0
Then - Actions
Unit - Cause Hero[(Integer A)] to damage Target[(Integer A)], dealing (10.00 x (Real((Agility of Hero[(Integer A)] (Include bonuses))))) damage of attack type Spells and damage type Normal
Set Count[(Integer A)] = (Count[(Integer A)] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Count[(Integer A)] Greater than or equal to 10
Then - Actions
Set Hero[(Integer A)] = No unit
Set Target[(Integer A)] = No unit
Set Count[(Integer A)] = -1
Else - Actions
Else - Actions