- Joined
- Mar 20, 2008
- Messages
- 485
The point of this trigger is for when a unit gets attacked he is to cast a war stomp ability but he can only do it every 5 seconds.. but will this leak? (i know its not MUI and im working on fixing that)
-
Boss is attacked
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
Actions
-
Set CO_AttackingUnit[(Player number of (Owner of (Attacking unit)))] = (Attacking unit)
-
Set CO_AttackedUnit[(Player number of (Owner of (Attacked unit)))] = (Attacked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of CO_AttackingUnit[(Player number of (Owner of (Attacking unit)))]) is an enemy of (Owner of CO_AttackedUnit[(Player number of (Owner of (Attacked unit)))])) Equal to True
-
(Unit-type of CO_AttackedUnit[(Player number of (Owner of (Attacked unit)))]) Equal to Firelord
-
-
Then - Actions
-
Unit - Add Counter Attack to CO_AttackedUnit[(Player number of (Owner of (Attacked unit)))]
-
Unit - Order CO_AttackedUnit[(Player number of (Owner of (Attacked unit)))] to Orc Tauren Chieftain - War Stomp
-
Wait 1.00 seconds
-
Unit - Remove Counter Attack from CO_AttackedUnit[(Player number of (Owner of (Attacked unit)))]
-
-
Else - Actions
-
-
-
-
Boss is attacked cooldown
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Counter Attack
-
-
Actions
-
Wait 1.00 seconds
-
Trigger - Turn off Boss is attacked <gen>
-
Wait 5.00 seconds
-
Trigger - Turn on Boss is attacked <gen>
-
-