Hello, I am trying to create a spell for a unit (Sorceress). I want the Sorceress unit to respect the following conditions:
So I tried to change the variable to this:
I don't know how else I could have the variable target only enemies of the Sorceress.
Does anyone know a way? Except using unit groups.
Thank you!
- cast the default slow ability on a random enemy unit in 1000 range from Sorceress
- this should trigger only after the Sorceress has damaged an enemy unit
- the random enemy unit doesn't already have the slow buff.
- don't use unit groups
-
Sorceress
-
Events
-
Unit - A unit Takes damage
-
-
Conditions
-
(Unit-type of (Damage source)) Equal to Sorceress
-
-
Actions
-
Set VariableSet Unit1Sorceress = (Random unit from (Units within 1000.00 of (Position of (Damage source)).))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit1Sorceress has buff Slow) Equal to False
-
((Damage source) belongs to an enemy of (Owner of Unit1Sorceress).) Equal to True
-
-
Then - Actions
-
Unit - Order (Damage source) to Human Sorceress - Slow Unit1Sorceress
-
-
Else - Actions
-
-
-
So I tried to change the variable to this:
-
Set VariableSet Unit1Sorceress = (Random unit from (Units within 1000.00 of (Position of (Damage source)) matching ((Unit1Sorceress belongs to an enemy of (Owner of (Damage source)).) Equal to True).))
I don't know how else I could have the variable target only enemies of the Sorceress.
Does anyone know a way? Except using unit groups.
Thank you!