Hey guys. So i've been trying to make this spell work, what i want for it is; The caster casts a shield on a friendly unit, when this unit takes damage the damage is halved. However i've only been able to get it to half the damage of the caster if it's casted on him, i've tried other ways but none seem to work. When changing "triggering unit" to "Target unit of ability being cast" it didnt halve the damage, instead healed the last unit that had the buff for the damage the unit that was that had the buff that taking the actual damage.
-
Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Gift of the Old Gods
-
-
Actions
-
Set Shieldgroup = (Units in (Playable map area))
-
Trigger - Add to Gift of the Dark Gods Shielding <gen> the event (Unit - (Picked unit) Takes damage)
-
-
-
Gift of the Dark Gods Shielding
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Gift of the Old Gods ) Equal to True
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
-
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Damage taken) / 2.00))
-
-
Else - Actions
-
Do nothing
-
-
-
-