Guys... does anyone have idea about Tripple Shot spell like: Every third attack deals damage to 3 enemies. I would like to base this tripple shot on Barrage spell, but it leaks when i do trigger in my way:
Tripple Shot
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) equal to Hunter
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TrippleShotCount Higher than 1
Then - Actions
Set TrippleShotCount = (TrippleShotCount - 1)
Else - Actions
Set TrippleShotCount = 3
Unit - Add Tripple Shot to (Attacking unit)
Wait 0.50 game-time seconds
Unit - Remove Tripple Shot from (Attacking unit)
Tripple Shot
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) equal to Hunter
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TrippleShotCount Higher than 1
Then - Actions
Set TrippleShotCount = (TrippleShotCount - 1)
Else - Actions
Set TrippleShotCount = 3
Unit - Add Tripple Shot to (Attacking unit)
Wait 0.50 game-time seconds
Unit - Remove Tripple Shot from (Attacking unit)