- Joined
- Aug 5, 2010
- Messages
- 147
Im trying to make it so when a certain ability is cast on a unit that unit takes 25% extra damage.
Here is the trigger i created
I created a unit variable to store the unit that is effected by the ability but i cant use the variable for the event 'a specific unit is attacked' so i cant use the 'specific unit' event to get it to work.
Here is the trigger i created
-
Assassins Mark
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Attacked unit) has buff Mark of the Assassin ) Equal to True
-
-
Then - Actions
-
Set AssMark = ((Life of (Attacked unit)) - ((Damage taken) x 1.25))
-
Unit - Set life of (Attacked unit) to AssMark
-
-
Else - Actions
-
Do nothing
-
-
-
-
I created a unit variable to store the unit that is effected by the ability but i cant use the variable for the event 'a specific unit is attacked' so i cant use the 'specific unit' event to get it to work.