Hello, could any one please look over this and tell me why its not working?
The unit (attacked) is casting heal on picked unit even when picked unit is at 99%, although it won't try if picked is at 100%. I thought it might be built in computer controlled AI, but when this trigger is turned off it never casts the heal.
The unit (attacked) is casting heal on picked unit even when picked unit is at 99%, although it won't try if picked is at 100%. I thought it might be built in computer controlled AI, but when this trigger is turned off it never casts the heal.
Code:
Spriggan
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacked unit)) Equal to Fiend (Medium)
Actions
Unit - Order (Attacked unit) to Night Elf Warden - Fan Of Knives
Unit - Order (Attacked unit) to Neutral Fire Lord - Soul Burn (Attacking unit)
Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Attacked unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Neutral Hostile
(Percentage life of (Picked unit)) Less than or equal to 35.00
Then - Actions
Unit - Order (Attacked unit) to Human Priest - Heal (Picked unit)
Else - Actions