- Joined
- May 11, 2010
- Messages
- 278
Hiya.
This is what i want to do:
Unit activates Ability, Aura 1 and Aura 2 is added to Unit. After 5 seconds Aura 1 and Aura 2 is removed from Unit.
I made this
But then I realized I'm f*cking stupid, because even if i create a unit variable just for this trigger, there can be more than one of this hero on the field at any given time, causing it to fail, yadda yadda.
So, is there a simple way to do it? Thanks in advance!
This is what i want to do:
Unit activates Ability, Aura 1 and Aura 2 is added to Unit. After 5 seconds Aura 1 and Aura 2 is removed from Unit.
I made this
-
Taunt
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Taunt
-
Actions
- Set unit = (Triggering unit)
- Unit - Add Defense bonus to unit
- Unit - Add Defense Reduction to unit
- Unit - Set level of Defense bonus for unit to (Level of Taunt for unit)
- Unit - Set level of Defense Reduction for unit to (Level of Taunt for unit)
- Countdown Timer - Start Taunttimer as a One-shot timer that will expire in 5.00 seconds
-
Events
-
Taunt expire
-
Events
- Time - Taunttimer expires
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units of type Vanguard of Sanctuary) and do (Actions)
-
Loop - Actions
- Unit - Remove Defense Reduction from (Picked unit)
- Unit - Remove Defense bonus from (Picked unit)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units of type Vanguard of Sanctuary) and do (Actions)
-
Events
But then I realized I'm f*cking stupid, because even if i create a unit variable just for this trigger, there can be more than one of this hero on the field at any given time, causing it to fail, yadda yadda.
So, is there a simple way to do it? Thanks in advance!