Nathan0093
New Member
- Reaction score
- 4
In this trigger I'm trying to make it so that when a unit casts a spell called "Convert" on an enemy building, It'll take it 30 seconds to finish it. I cannot figure out a way to make it possible for multiple units to cast this spell at once without any problem. Help?
Code:
Converting
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to (==) Convert
(Owner of (Triggering unit)) Not equal to (!=) (Owner of (Target unit of ability being cast))
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Percentage life of (Target unit of ability being cast)) Less than or equal to (<=) 70.00
(Point-value of (Target unit of ability being cast)) Equal to (==) Convertable
Then - Actions
Unit - Make (Triggering unit) Vulnerable
Wait 29.70 seconds
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) is alive) Equal to (==) True
((Triggering unit) has buff Capturing (Caster) ) Equal to (==) True
Then - Actions
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
Else - Actions
Do nothing
Else - Actions
Wait 0.15 game-time seconds
Unit - Order (Triggering unit) to Stop