Damage Taken (Solved)
I'd like to ask a pretty simple question what I can't find answer to :S
I'm creating a spell what heals nearby allied units based on the damage the target took. The main problem is that somehow I can't call for the damage taken. I know there should be an event what's called "Unit - Takes Damage" but there is no such thing actually in my WE
Later I can use "Damage Taken" as a real, but there is no such event.. 
Here is the trigger I made so far:
Ideas? (You might notice something else in the trigger... It just don't works in the way I want. Don't hesitate to tell me if it's wrong somewhere
)
EDIT: I solved the problem in my own way.
I'd like to ask a pretty simple question what I can't find answer to :S
I'm creating a spell what heals nearby allied units based on the damage the target took. The main problem is that somehow I can't call for the damage taken. I know there should be an event what's called "Unit - Takes Damage" but there is no such thing actually in my WE


Here is the trigger I made so far:
-
Events
-
Unit - A unit is attacked
-
-
Conditions
-
(Attacked Unit) Equal to UnitArrayOfMine[RequiedNumber]
-
(Unit-type of (Attacked Unit)) Equal to RequiedUnitTypeOfMine
-
-
Actions
-
Set TempPoint = (Position of (Attacked Unit))
-
Unit Group - Remove all units from TempUnitGroup
-
Unit Group - Add all units of (Units within 400.00 of TempPoint matching (((Matching Unit) belongs to an ally of (Owner of (Attacked Unit)) Equal to True) to TempUnitGrop
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked Unit) is A structure) Equal to False
-
-
Then - Actions
-
Set TempPoint2 = (Position of (Picked Unit))
-
Unit - Set life of (Picked unit) to (Life of (Picked unit)) + (((Damage Taken) / 100.00) x (8.00 + ((Real((Level of Holy Blood for (Attacked Unit)))) x 2.00))))
-
Special Effect - Creates and destroys a healing special effect here
-
-
Else - Actions
-
Do Nothing
-
-
-
-
-
Unit Group - Remove all units from TempUnitGroup
-
Ideas? (You might notice something else in the trigger... It just don't works in the way I want. Don't hesitate to tell me if it's wrong somewhere

EDIT: I solved the problem in my own way.
Last edited: