Basically i'm trying to do a spell that steals life based on dmg done when a unit is bashed (buff: stunned(pause). After going thru different triggers i got stuck. Can someone tell me whats wrong with the following trigger(s)?
-
Lifestealon
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Level of BashLifesteal for (Attacking unit)) Greater than 0
-
-
Actions
-
Set Lifesteal_Target = (Attacked unit)
-
Set Lifesteal_Caster = (Attacking unit)
-
Trigger - Add to Lifestealdmg <gen> the event (Unit - Lifesteal_Target Takes damage)
-
Trigger - Turn on Lifestealdmg <gen>
-
-
-
Lifestealdmg
-
Events
-
Conditions
-
((Triggering unit) has buff Stunned (Pause)) Equal to True
-
(Level of BashLifesteal for (Damage source)) Greater than 0
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Lifesteal_Caster Equal to (Damage source)
-
-
Then - Actions
-
Set Lifesteal_Damage = (Damage taken)
-
Unit - Set life of Lifesteal_Caster to (Lifesteal_Damage + (Life of (Damage source)))
-
Set Lifesteal_Target = No unit
-
Set Lifesteal_Caster = No unit
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
Trigger - Turn off (This trigger)
-
-
-
-