- Joined
- Aug 7, 2010
- Messages
- 77
Hello all, i wonder if there's a way to check an unit thats had just casted an auto cast spells. I've just tried on manual activate the spell and those lines of trigger works.
-
Untitled Trigger 001
-
Events
- Unit - TestingUnit 0231 <gen> Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Trinity2 (Neutral Hostile)
-
Actions
- Set TrinityRandom = (Random integer number between 0 and 10)
- Game - Display to (All players) the text: (String(TrinityRandom))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- TrinityRandom Less than or equal to 3
-
Then - Actions
- Wait 1.00 seconds
- Unit - Remove Trinity2 (Neutral Hostile) from TestingUnit 0231 <gen>
- Unit - Add Trinity2 (Neutral Hostile) to TestingUnit 0231 <gen>
- Unit - Order TestingUnit 0231 <gen> to Stop
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events