Spray-
Member
- Reaction score
- 1
Trying to make a spell that when cast on enemies, all damage done to them will heal everyone around the damaged unit for the amount of damage taken.
This is what i've come up with so far, the Special Effect works, but not the actual heal.
Any help? 
This is what i've come up with so far, the Special Effect works, but not the actual heal.
Code:
Events
Unit - A unit Is attacked
Conditions
((Attacked unit) has buff Vampiric Embrace ) Equal to True
((Attacking unit) belongs to an enemy of Player 12 (Brown)) Equal to True
Actions
Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Attacked unit)) matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True)) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (Damage taken))
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Heal\HealTarget.mdl