- Joined
- May 18, 2016
- Messages
- 25
Hello there, I'm having problems trying to make an autocast ability that heals friendly nearby units whenever it deals damage to an enemy. I've tried to do something, however I'm none too skilled when it comes to spell triggers, so it just doesn't work.
Here's what I tried:
Here's what I tried:
-
Smite
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Smite
-
-
Actions
-
Set Location = (Position of (Triggering unit))
-
Set HolySmiteGroup = (Units within 800.00 of Location matching ((((Matching unit) belongs to an ally of (Owner of (Picked unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in HolySmiteGroup and do (Actions)
-
Loop - Actions
-
Unit - Create 1 DUMMY 1 for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
-
Unit - Add Holy Light to (Last created unit)
-
Unit - Order (Last created unit) to Human Paladin - Holy Light (Random unit from HolySmiteGroup)
-
Unit - Add a 0.75 second Generic expiration timer to (Last created unit)
-
-
-
Custom script: call DestroyGroup(udg_HolySmiteGroup)
-
Custom script: call RemoveLocation(udg_Location)
-
-