I have this trigger:
-
Trigger
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-

Actions
-


For each (Integer A) from 1 to 8, do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Owner of (Attacked unit)) Equal to Player[(Integer A)]
-






(Owner of (Attacking unit)) Equal to Player 12 (Brown)
-






(Attacked unit) Not equal to Core[(Integer A)]
-
-





Then - Actions
-






Set LifeBfrDamage = (Life of (Attacked unit))
-






Wait until ((Life of (Triggering unit)) Less than LifeBfrDamage), checking every 0.10 seconds
-






Unit - Set life of Core[(Integer A)] to ((Life of Core[(Integer A)]) - (LifeBfrDamage - (Life of (Attacked unit))))
-
-





Else - Actions
-
-
-
-
-




